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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

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