Splunk Search

Alert based on domain name, not IP

bulgin
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

sdaniels
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.

http://blogs.splunk.com/2009/12/15/reverse-dns-lookups-for-host-entries/

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
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...