Splunk Enterprise

compare field from search with field from csv file

sarit_s
Communicator

Hello

I have csv file with host names

also, i have this query :

sourcetype="Perfmon:Windows Time Service" counter="Computed Time Offset"

this search returns the host name.

how can i search within the hosts in the csv file so only the ones from the file will return in my global search ?

thanks 

Labels (1)
Tags (1)
0 Karma
1 Solution

manjunathmeti
Champion

hi @sarit_s,

Assuming you field host in CSV file, you can filter in the main search only.

sourcetype="Perfmon:Windows Time Service" counter="Computed Time Offset" [| inputlookup filename.csv | field host | format]

 

View solution in original post

0 Karma

manjunathmeti
Champion

hi @sarit_s,

Assuming you field host in CSV file, you can filter in the main search only.

sourcetype="Perfmon:Windows Time Service" counter="Computed Time Offset" [| inputlookup filename.csv | field host | format]

 

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