Splunk Search

How to write a search to only return hosts that are not sending WinEventLog:Security events?

willamwar
Path Finder

I want to get a list of all hosts not sending "WinEventLog:Security".

So index=wineventlog, get list of hosts, remove any that have reported "WinEventLog:Security"

How can I do this?

0 Karma
1 Solution

willamwar
Path Finder
|tstats count WHERE index=wineventlog groupby host sourcetype | chart sum(count) over host by sourcetype | addtotals  | search Total>0 NOT WinEventLog:Security>1

I had to use the NOT WinEventLog:Security>1 as isnull and =0, ="0", and <1 all did not work.

View solution in original post

0 Karma

willamwar
Path Finder
|tstats count WHERE index=wineventlog groupby host sourcetype | chart sum(count) over host by sourcetype | addtotals  | search Total>0 NOT WinEventLog:Security>1

I had to use the NOT WinEventLog:Security>1 as isnull and =0, ="0", and <1 all did not work.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...