Info | Description |
---|---|
Version | 1.2.6 - See on Splunkbase |
Vendor Product Version | Pi-hole v5.0 |
Add-on has a web UI | No. This add-on does not contain any views. |
The TA-pihole_dns Add-on allows Splunk data administrators to map the Pi-Hole DNS events to the CIM enabling the data to be used with other Splunk Apps, such as Enterprise Security.
Version 1.2.6
Fixed
- Regex/Exact query blacklist events not being extracted.
- HTTPS record types fixed (type=65).
* Failing to perform the following will cause this add-on to not extract fields properly
Set log-queries=extra
in the pihole dnsmasq configuration file. Pi-hole recommends to make any changes to a new configuration file to avoid changes to be overridden during an update.
- Create a new file:
/etc/dnsmasq.d/02-pihole-splunk.conf
. - Add
log-queries=extra
to the file. save and close the file - Restart pi-hole with
pihole restartdns
Splunk platform Instance type | Supported | Required | Actions required/ Comments |
---|---|---|---|
Search Heads | Yes | Yes | Install this add-on to all search heads |
Indexers | Yes | Conditional | Not required if heavy forwarders are used to collect data. Required if using Universal or Light Forwarders. |
Heavy Forwarders | Yes | Conditional | Required, if HFs are used to collect this data source. |
Universal Forwarders | Yes | Not required | The add-on includes an inputs.conf that is disabled by default. This can be used to create an input on the forwarder if enabled. |
* For more information, see Splunk's documentation on installing Add-ons.
Set the sourcetype to pihole
in the inputs.conf file on the forwarder.
* See Installation Walkthrough for more information
Below are a list of sourcetypes which this Add-on uses. The pihole:dhcp
sourcetype will automatically be transformed when the pihole
sourcetype is set in the inputs configuration.
Source type | Description | CIM Data Models |
---|---|---|
pihole |
Pi-hole DNS events | Network Resolution |
pihole:dhcp |
Pi-hole DHCP events | Network Sessions |
pihole:ftl |
Pi-hole FTL events | None |
Download the latest Splunk Universal Forwarder (UF) appropriate for your server. This UF should be installed on the same server as the Pi-Hole server.
Install the UF according to Splunk Docs.
Once installed the configurations can be made. The following is a sample inputs.conf that can be pushed using a deployment server or configured on the UF itself.
# inputs.conf
[monitor:///var/log/pihole.log]
disabled = 0
sourcetype = pihole
# optionally specify an index, if configured.
#index = dns
[monitor:///var/log/pihole-FTL.log]
disabled = 0
sourcetype = pihole:ftl
# optionally specify an index, if configured.
#index = dns
Push the configuration to the forwarder, if using a deployment server, or restart the UF if configuring on the UF itself.
Please open an issue at github.com