Skip to content

Commit c3887db

Browse files
author
Donald Tregonning
authored
Merge pull request #166 from splunk/header_docs_develop
Documentation updates for header support
2 parents d540004 + 3ca8098 commit c3887db

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,12 @@ Use the below schema to configure Splunk Connect for Kafka
376376
"splunk.hec.event.timeout": "<timeout in seconds>",
377377
"splunk.hec.socket.timeout": "<timeout in seconds>",
378378
"splunk.hec.track.data": "<true|false, tracking data loss and latency, for debugging lagging and data loss>"
379+
"splunk.header.support": "<true|false>",
380+
"splunk.header.custom": "<list-of-custom-headers-to-be-used-from-kafka-headers-separated-by-comma>",
381+
"splunk.header.index": "<header-value-to-be-used-as-splunk-index>",
382+
"splunk.header.source": "<header-value-to-be-used-as-splunk-source>",
383+
"splunk.header.sourcetype": "<header-value-to-be-used-as-splunk-sourcetype>",
384+
"splunk.header.host": "<header-value-to-be-used-as-splunk-host>"
379385
}
380386
}
381387
```
@@ -426,6 +432,16 @@ Use the below schema to configure Splunk Connect for Kafka
426432
| `splunk.hec.json.event.enrichment` | Only applicable to /event HEC endpoint. This setting is used to enrich raw data with extra metadata fields. It contains a list of key value pairs separated by ",". The configured enrichment metadata will be indexed along with raw event data by Splunk software. Note: Data enrichment for /event HEC endpoint is only available in Splunk Enterprise 6.5 and above. By default, this setting is empty. See ([Documentation](http://dev.splunk.com/view/event-collector/SP-CAAAE8Y#indexedfield)) for more information.> Note: For example, `org=fin,bu=south-east-us`||
427433
| `splunk.hec.track.data` | Valid settings are `true` or `false`. When set to `true`, data loss and data injection latency metadata will be indexed along with raw data. This setting only works in conjunction with /event HEC endpoint (`"splunk.hec.raw" : "false"`).|`false`|
428434
435+
### Headers Parameters
436+
#### Use Headers
437+
* `splunk.header.support` - Valid settings are `true` or `false`. When set to `true` Splunk Connect for Kafka will parse kafka headers for using meta data in generated splunk events. By default, this setting is set to `false`.
438+
* `splunk.header.custom` - This setting is only applicable when `splunk.header.support` is set to `true`. Custom headers are configured separated by comma for multiple headers. ex, "custom_header_1,custom_header_2,custom_header_3. This setting will look for kafka record headers with these values and add them to each event if present. By default, it is set to `""`.
439+
* `splunk.header.index` - This setting is only applicable when `splunk.header.support` is set to `true`. This setting specifies the header to be used for splunk index. By default, it is set to `splunk.header.index`.
440+
* `splunk.header.source` - This setting is only applicable when `splunk.header.support` is set to `true`. This setting specifies the source to be used for splunk source. By default, it is set to `splunk.header.source`.
441+
* `splunk.header.sourcetype` - This setting is only applicable when `splunk.header.support` is set to `true`. This setting specifies the sourcetype to be used for splunk sourcetype. By default, it is set to `splunk.header.sourcetype`.
442+
* `splunk.header.host` - This setting is only applicable when `splunk.header.support` is set to `true`. This setting specifies the host to be used for splunk host. By default, it is set to `splunk.header.host`.
443+
444+
429445
#### Configuration Examples
430446
Two parameters which affect that core functionality of how the Connector works are:
431447
`splunk.hec.raw` and `splunk.hec.ack.enabled`. Detailed below are 4 configuration examples which implement these settings

0 commit comments

Comments
 (0)