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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...