Splunk Search

Alert based on domain name, not IP

New Member

We would like to setup an alert based upon domain name -- that is, our apache logs contain IP addresses of the GET request. Can an alert be set that matches on a domain name and if so, what transforms or other methods need to be implemented to do so.

I'm guessing that if the apache logs would do dns lookups, they would then contain the domain name and that could work -- as long as I can trigger an alert based on domain names contained in the apache logs.

Otherwise can splunk -- and would I even want splunk -- to do the domain lookups and then report accordingly?

Thank you.

0 Karma

Splunk Employee
Splunk Employee

This is something that you can have Splunk do via a look up which could be a .csv file or better yet a script in this case. See this for reference. You can set up the look up to be automatic or manual via search.


Look ups in the docs: http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/lookup

Example in the docs referencing hostname look up: http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources

0 Karma