splunk_hecο
Collect logs from Splunk HEC
Type: splunk_hec
Sample YAMLο
{% code title=βsplunk_hec_example.yamlβ %}
sources:
splunk_hec_example:
type: splunk_hec
address: 0.0.0.0:9000
route_label: ''
valid_tokens: ''
store_hec_token: false
tls:
tls.enabled: false
tls.alpn_protocols: ''
tls.verify_certificate: true
tls.verify_hostname: true
tls.ca_file: ''
tls.crt_file: ''
tls.key_file: ''
tls.key_pass: ''
# optional:
# <key>: <value>
{% endcode %}
Fields Referenceο
Below are tables for Base, TLS, and Optional sections. Columns: Key, Label, Type, Default, Required, Depends on, Enum / Notes.
Baseο
Key |
Label |
Type |
Default |
Required |
Enum / Notes |
Depends on |
|---|---|---|---|---|---|---|
address |
Address |
regex |
0.0.0.0:9000 |
β |
The socket address to listen for connections on, or systemd{#N} to use the Nth socket passed by systemd socket activation. |
β |
route_label |
Event Routing Label |
string |
ββ |
β |
The label to use in routing these events to a destination. Defaults to source name-type. |
β |
valid_tokens |
Valid Tokens |
string |
ββ |
β |
A CSV list of valid HEC tokens. |
β |
store_hec_token |
Store HEC Token |
bool |
false |
β |
Whether or not to forward the Splunk HEC authentication token with events. |
β |
TLSο
Key |
Label |
Type |
Default |
Required |
Enum / Notes |
Depends on |
|---|---|---|---|---|---|---|
tls.enabled |
TLS Enabled |
bool |
false |
β |
Whether or not to require TLS for incoming or outgoing connections. When enabled and used for incoming connections, an identity certificate is also required. See tls.crt_file for more information. |
β |
tls.alpn_protocols |
ALPN protocols |
string |
ββ |
β |
Sets the list of supported ALPN protocols. Declare the supported ALPN protocols, which are used during negotiation with peer. They are prioritized in the order that they are defined. |
β |
tls.verify_certificate |
Verify Certificate |
bool |
true |
β |
Enables certificate verification. For components that create a server, this requires that the client connections have a valid client certificate. For components that initiate requests, this validates that the upstream has a valid certificate. |
β |
tls.verify_hostname |
Verify Hostname |
bool |
true |
β |
Enables hostname verification. If enabled, the hostname used to connect to the remote host must be present in the TLS certificate presented by the remote host, either as the Common Name or as an entry in the Subject Alternative Name extension. Only relevant for outgoing connections. |
β |
tls.ca_file |
Certificate Authority File |
file_ca_file |
ββ |
β |
Absolute path to an additional CA certificate file. |
β |
tls.crt_file |
Certificate File |
file_crt_file |
ββ |
β |
Absolute path to a certificate file used to identify this server. |
β |
tls.key_file |
Private Key |
file_key_file |
ββ |
β |
Absolute path to a private key file used to identify this server. |
β |
tls.key_pass |
Private Key Passphrase |
string |
ββ |
β |
Passphrase used to unlock the encrypted key file. |
β |
Optionalο
Key |
Label |
Type |
Default |
Required |
Enum / Notes |
Depends on |
|---|---|---|---|---|---|---|
keepalive.max_connection_age_jitter_factor |
Keepalive Max Connection Age Jitter Factor |
int |
0.1 |
β |
The factor by which to jitter the max_connection_age_secs value. A value of 0.1 means that the actual duration will be between 90% and 110% of the specified maximum duration. |
β |
keepalive.max_connection_age_secs |
Keepalive Max Connection Age Secs |
int |
300 |
β |
The maximum amount of time a connection may exist before it is closed by sending a Connection: close header on the HTTP response. Set this to a large value like 100000000 to βdisableβ this feature. |
β |