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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...