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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...