File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,12 @@ Note that this role requires root access.
54
54
name : " signalfx.splunk_otel_collector.collector"
55
55
vars :
56
56
splunk_access_token : YOUR_ACCESS_TOKEN
57
+ splunk_hec_token : YOUR_HEC_TOKEN
57
58
splunk_realm : SPLUNK_REALM
58
59
` ` `
59
60
61
+ > **_NOTE:_** Setting splunk_hec_token is optional.
62
+
60
63
Full documentation on how to configure the role:
61
64
[Splunk OpenTelemetry Collector Role](https://github.com/signalfx/splunk-otel-collector/tree/main/deployments/ansible/roles/collector)
62
65
Original file line number Diff line number Diff line change @@ -31,9 +31,12 @@ how to use the role in a playbook with minimal required configuration:
31
31
name : " signalfx.splunk_otel_collector.collector"
32
32
vars :
33
33
splunk_access_token : YOUR_ACCESS_TOKEN
34
+ splunk_hec_token : YOUR_HEC_TOKEN
34
35
splunk_realm : SPLUNK_REALM
35
36
` ` `
36
37
38
+ > **_NOTE:_** Setting splunk_hec_token is optional.
39
+
37
40
You can disable starting the collector and fluentd services by setting
38
41
the argument ` start_service` to `false`:
39
42
Original file line number Diff line number Diff line change 28
28
notify : " restart splunk-otel-collector"
29
29
when : splunk_otel_collector_proxy_http != "" or splunk_otel_collector_proxy_https != ""
30
30
31
+ - name : Set default hec token
32
+ set_fact :
33
+ splunk_hec_token : " {{splunk_access_token}}"
34
+ when : splunk_hec_token is not defined or (splunk_hec_token | trim) == ""
35
+
31
36
- name : Set up env file for Splunk OTel Collector service
32
37
ansible.builtin.template :
33
38
src : splunk-otel-collector.conf.j2
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ SPLUNK_HEC_URL={{ splunk_ingest_url + "/v1/log" }}
17
17
{% else %}
18
18
SPLUNK_HEC_URL={{ "https://ingest." + splunk_realm + ".signalfx.com/v1/log" }}
19
19
{% endif %}
20
- SPLUNK_HEC_TOKEN={{ splunk_access_token }}
20
+ SPLUNK_HEC_TOKEN={{ splunk_hec_token }}
21
21
SPLUNK_MEMORY_TOTAL_MIB={{ splunk_memory_total_mib }}
22
22
SPLUNK_BALLAST_SIZE_MIB={{ splunk_ballast_size_mib }}
23
23
SPLUNK_LISTEN_INTERFACE={{ splunk_listen_interface }}
You can’t perform that action at this time.
0 commit comments