Update Search Macros¶
To ensure this App functions efficiently, it is important to update a few search macros. Change the following macros to their appropriate values. For more information on the search macros used in this app, see Search Macros Reference.
How to Update Macros¶
- Open the Pihole DNS app for Splunk.
Navigate to Settings > Advanced Search > Search macros.
Not seeing any results
If no results are found, be sure that the "App" context is set to the Pihole DNS app, owner is set to "Any", and choose "Created in the App" from the remaining drop-down.
Update the search macros as necessary.
Update Index Macros¶
Update the index specific macros to the indexes being used for the Pi-hole data. Updating these to the correct values will increase performance of searches.
|Update to the specific index being used for the "pihole" sourcetype.
|Update to the specific index being used for the "pihole:dhcp" sourcetype, if different from the main pihole index.
|Update to the index set in the scripted input from the Pihole DNS Add-on.
|Update to the specific index being used for the "pihole:system" sourcetype created from the system summary events modular input. see Pihole Add-on: Modular Inputs.
|Update to the specific index being used for the pihole:filters sourcetype created from the filters modular input. see Pihole Add-on: Modular Inputs.
Update Search Related Macros¶
Update this search macro only if you are using DMA. see Configure Data Model Acceleration for more information.
Updating this macro to "true" without first enabling data model acceleration will cause the searches in dashboards to fail or have no results.
|Defaults to not using summarized data from the CIM. Set to "true" if using data model acceleration.
Update Lookup Macros¶
Update the following search macros if you are utilizing a custom lookup for hostname enrichment. If you are using the default lookup included in this app, do not modify the following. see Configure Enrichment for more information.
|Update to the name of the CSV file you are using.
|Update only if you are not using the default field for IPs.
|Update only if you are not using the default field for hostnames
|Update only if you are not using the default field for mac addresses.
After saving the search macros, navigate back to the Pihole DNS app and you should now see the "Hostname" field being populated. If not, see Troubleshooting Enrichment.