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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...