Skip to content

Commit

Permalink
fix: remove t_edge_hec
Browse files Browse the repository at this point in the history
  • Loading branch information
ikheifets-splunk committed Mar 5, 2024
1 parent 7261d6a commit 8c29736
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 43 deletions.
4 changes: 0 additions & 4 deletions charts/splunk-connect-for-syslog/templates/statefulset.yaml
Expand Up @@ -56,10 +56,6 @@ spec:
key: hec_token
name: splunk-connection
{{- end }}
{{- if .Values.splunk.hec_template }}
- name: SC4S_HEC_TEMPLATE
value: "{{ .Values.splunk.hec_template }}"
{{- end }}
- name: SC4S_DEST_SPLUNK_HEC_DEFAULT_TLS_VERIFY
value: "{{ .Values.splunk.hec_verify_tls }}"
{{- if .Values.persistence.enabled }}
Expand Down
24 changes: 0 additions & 24 deletions docs/edge_processor.md
Expand Up @@ -37,27 +37,3 @@ stateDiagram

1. Use IP of EP instance as HEC URL
2. Use token from EP Global Settings
3. Use EP API format: t_edge_hec

### Docker:

Update `env_file`:
```
SC4S_DEST_SPLUNK_HEC_DEFAULT_URL=http://x.x.x.x:8088
SC4S_DEST_SPLUNK_HEC_DEFAULT_TOKEN=secret
SC4S_HEC_TEMPLATE=t_edge_hec
```

### Kubernetes:

Update `values.yaml`:
```
splunk:
hec_url: "http://x.x.x.x:8088"
hec_token: "secret"
hec_template: "t_edge_hec"
```

## TLS

Coming soon...
13 changes: 0 additions & 13 deletions package/etc/conf.d/conflib/_common/t_templates.conf
Expand Up @@ -137,19 +137,6 @@ template t_JSON_5424_SDATA {
};

template t_splunk_hec {
template('$(format-json
time=$(if ("${.netsource.sc4s_use_recv_time}" eq "yes") "$R_UNIXTIME" "$S_UNIXTIME")
host=$(lowercase ${HOST})
source=${.splunk.source:-SC4S}
sourcetype=${.splunk.sourcetype:-sc4s:fallback}
index=${.splunk.index:-main}
event="$(template ${.splunk.sc4s_template:-t_hdr_msg})"
fields.sc4s_tags="$(implode "|" $(explode "," "$TAGS"))"
fields.*
)');
};

template t_edge_hec {
template('$(format-json
time=$(if ("${.netsource.sc4s_use_recv_time}" eq "yes") ${R_UNIXTIME} ${S_UNIXTIME})
host=$(lowercase ${HOST})
Expand Down
3 changes: 1 addition & 2 deletions package/etc/conf.d/destinations/dest_hec/plugin.py
Expand Up @@ -21,8 +21,7 @@ def hec_endpoint_collector(hec_path, url_hec):
)
tm = templateEnv.get_template("plugin.jinja")

t_hec_template = os.getenv("SC4S_HEC_TEMPLATE", "t_splunk_hec")
msg_template = "$(template ${.splunk.sc4s_hec_template} $(template %s))" % t_hec_template
msg_template = "$(template ${.splunk.sc4s_hec_template} $(template t_splunk_hec))"
dest_mode = "_fmt"
dests = []

Expand Down

0 comments on commit 8c29736

Please sign in to comment.