- Example Configuration
- Parameters
- type (required)
- host (required)
- port (required)
- token (required)
- default_host
- host_key
- defaout_source
- source_key
- default_index
- index_key
- sourcetype
- use_fluentd_time
- use_ack
- channel
- ack_interval
- ack_retry_limit
- raw
- event_key
- line_breaker
- use_ssl
- ssl_verify
- ca_file
- client_cert
- client_key
- client_key_pass
<match splunk.**>
@type splunk_hec
host example.com
port 8089
token 00000000-0000-0000-0000-000000000000
# metadata parameter
default_source fluentd
# ack parameter
use_ack true
channel 8e69d7b3-f266-e9f3-2747-cc5b7f809897
ack_retry 8
# ssl parameter
use_ssl true
ca_file /path/to/ca.pem
# buffered output parameter
flush_interval 10s
</match>
The value must be splunk_hec.
The Splunk hostname.
The Splunk port.
The token for HTTP Event Collector.
If you set this, the value is set as host metadata.
If you set this, the value associated with this key in each record is used as host metadata. When the key is missing, default_host is used.
If you set this, the value is set as source metadata.
If you set this, the value associated with this key in each record is used as source metadata. When the key is missing, default_source is used.
If you set this, the value is set as index metadata.
If you set this, the value associated with this key in each record is used as index metadata. When the key is missing, default_index is used.
If you set this, the value is set as sourcetype metadata.
The default: true
If set true, fluentd's timestamp is used as time metadata. If the record already has its own time value, this options should be false.
Enable/Disable Indexer acknowledgement. When this is set true, channel parameter is required.
This is used as channel identifier.
When you set use_ack or raw, this parameter is required.
The default: 1
Specify how many seconds the plugin should wait between checks for Indexer acknowledgement.
The default: 3
Specify how many times the plugin check Indexer acknowledgement.
Enable raw mode.
On raw mode, the plugin can't configure metadata at event level and time metadata. So *_key and use_fluentd_time parameters are ignored.
When this is set true, event_key and channel parameter must also be set.
Example:
- configuration:
raw = true, event_key = "log" - fluentd record:
1490924392 {"foo": "bar", "log": "GET / HTTP/1.1 200"} - sent as:
GET / HTTP/1.1 200
Only for raw mode. The value specified by this key is sent as an event.
When raw is set to true, this parameter is required.
- fluentd record:
1490924392 {"log": "GET / HTTP/1.1 200"} - sent as:
GET / HTTP/1.1 200
The default: "\n"
The line breaker used when multiple records are sent at once.
The default: false
Use SSL when connecting to Splunk.
The default: true
Enable/Disable SSL certificate verification.
The path of CA file.
The path of client certificate file.
The path of client key file
The passphrase of client key.