Splunk
Splunk is a data platform for searching, monitoring, and analyzing machine-generated data. The Splunk integration sends all Home Assistant state changes to a Splunk instance using the HTTP Event Collector (HEC) feature.
Prerequisites
- A Splunk instance (version 6.3 or later) that is network-accessible from Home Assistant.
- The HTTP Event Collector (HEC) must be enabled and a token created. To set this up in Splunk:
- Go to Settings > Data inputs.
- Select HTTP Event Collector.
- Select Global Settings and ensure HEC is Enabled.
- Select New Token and follow the prompts to create a token for Home Assistant.
- Copy the generated token value for use in the configuration below.
此集成可通过 UI 配置。前往 设置 > 设备与服务 添加。
Filters
Optionally, add the following lines to your "configuration.yaml" file for filtering which entities are sent to Splunk:
更改配置后需要重启 Home Assistant。
Configuring a filter
By default, no entity will be excluded. To limit which entities are exposed to Splunk, you can use the filter parameter.
Filters are applied as follows:
- No filter
- All entities included
- Only includes
- Entity listed in entities include: include
- Otherwise, entity matches domain include: include
- Otherwise, entity matches glob include: include
- Otherwise: exclude
- Only excludes
- Entity listed in exclude: exclude
- Otherwise, entity matches domain exclude: exclude
- Otherwise, entity matches glob exclude: exclude
- Otherwise: include
- Domain and/or glob includes (may also have excludes)
- Entity listed in entities include: include
- Otherwise, entity listed in entities exclude: exclude
- Otherwise, entity matches glob include: include
- Otherwise, entity matches glob exclude: exclude
- Otherwise, entity matches domain include: include
- Otherwise: exclude
- Domain and/or glob excludes (no domain and/or glob includes)
- Entity listed in entities include: include
- Otherwise, entity listed in exclude: exclude
- Otherwise, entity matches glob exclude: exclude
- Otherwise, entity matches domain exclude: exclude
- Otherwise: include
- No Domain and/or glob includes or excludes
- Entity listed in entities include: include
- Otherwise: exclude
The following characters can be used in entity globs:
* - The asterisk represents zero, one, or multiple characters
? - The question mark represents zero or one character
Removing the integration
To remove the Splunk integration:
- Remove the
splunk:section from your "configuration.yaml" file. - Restart Home Assistant.
Data already sent to your Splunk instance will remain there and can still be queried.

