From 3ca809826ab9851847e980e849540a0843a08c9b Mon Sep 17 00:00:00 2001 From: Chaitanya Phalak Date: Fri, 24 Aug 2018 16:25:08 -0700 Subject: [PATCH] Documentation updates for header support --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 5fa3db88..f72115b5 100644 --- a/README.md +++ b/README.md @@ -376,6 +376,12 @@ Use the below schema to configure Splunk Connect for Kafka "splunk.hec.event.timeout": "", "splunk.hec.socket.timeout": "", "splunk.hec.track.data": "" + "splunk.header.support": "", + "splunk.header.custom": "", + "splunk.header.index": "", + "splunk.header.source": "", + "splunk.header.sourcetype": "", + "splunk.header.host": "" } } ``` @@ -426,6 +432,16 @@ Use the below schema to configure Splunk Connect for Kafka | `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`|| | `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`| +### Headers Parameters +#### Use Headers +* `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`. +* `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 `""`. +* `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`. +* `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`. +* `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`. +* `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`. + + #### Configuration Examples Two parameters which affect that core functionality of how the Connector works are: `splunk.hec.raw` and `splunk.hec.ack.enabled`. Detailed below are 4 configuration examples which implement these settings