Getting Data In

In Splunk Enterprise 7x, how do you get results of a search based on CSV content?

noy72
New Member

Splunk Enterprise 7x

I am basically trying to get this to work:

https://answers.splunk.com/answers/519950/ho-to-get-search-input-from-csv-file.html

I have created a .csv, inported it, and created a lookup definition. I am trying to filter the results of a "*" search for service status such that it only displays the services listed in the .csv.

eventtype=hostmon_winows Type=Service host="SCCM" (Name="*") Startmode="*" State= "*" [ |inputlookup SCCMServicesCSV.csv   |fields ServiceName] | dedup host, Name | table host, Name, Startmode, State

This query is from the Windows App. It works just fine when the lookup section isn't included.

Can someone tell me what I am doing wrong?

Thank you,

Ron Jones

0 Karma
1 Solution

lakshman239
Influencer

You are missing format

eventtype=hostmon_winows Type=Service host="SCCM" (Name="*") Startmode="*" State= "*" [ |inputlookup SCCMServicesCSV.csv   |fields ServiceName| format] | dedup host, Name | table host, Name, Startmode, State

View solution in original post

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...