Splunk Dev

How to use Inputlookup

omrip
New Member

Hi
after importing a csv file i want to compare the hostnames/ipaddresses in the csv file not reporting iis using a specific index

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Something like this?

index=foo sourcetype=bar | stats count by ip | eval class = "reporting"
| inputlookup append=t your_file_containing_a_list_of_ips | eval class = coalesce(class, "expected")
| stats values(class) as class by ip
| search class="expected" NOT class="reporting"
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 ...