Splunk Search

show only infected with vulnerability on 1 machine

xavierpaul
New Member

hi,

I am a newbie in splunk

I have this one use case I am trying. search for a machine that have malware infection AND it has a vulnerability. anyone can give me pointers the best search to do it?

(sourcetype="vulnscan" severity=critical) OR sourcetype="avscan" | table av_threatname severity hostname | eval infectedandvulnerable=coalesce(av_threatname,severity)

Tags (1)
0 Karma

DMohn
Motivator

You have to use two searches and join the results of them.

Assuming your individual sourcetypes have the hostname field in common (you have to have one common field in both searches, otherwise you will have to evalthem to be identical) you may use this search:

 sourcetype=vulnscan severity=critical | table hostname | join hostname [search sourcetype=avscan] 

For more info on the join command, check => http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...