Getting Data In

cross files csv as to as rechercheV in excel

jamfal
New Member

hello every body,
my question is:

If i have 2 csv files in Splunk
One with the list of servers
The other antivirus coverage of servers
Is it possible to cross the files in order to find the servers that have antivirus cover among those of my list

Tags (1)
0 Karma

woodcock
Esteemed Legend

Assuming both files use host as the field name, search like this:

| inputcsv AntiVirusResults | eval source="AV"
| appendpipe [| inputcsv ServerList | eval source="SL" ]
| stats dc(source) AS numSources values(source) AS sources BY host

Then add this to show hits:

| search numSources=2

Or add this to show misses:

| search sources="SL" AND numSources=1
0 Karma

dineshraj9
Builder

You can join based on the servername and then check the antivirus coverage -

| inputlookup serverlist.csv | table servername | lookup server_antivirusdetails.csv servername OUTPUT antivirus_version | fillnull value="NA" antivirus_version

Here servername is common field between 2 lookups. Places where there are no match, the antivirus_version will be set as "NA"

0 Karma
Get Updates on the Splunk Community!

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

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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