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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...