Getting Data In

Can I use != in blacklist?

benbabich
Explorer

I only want to see cmd.exe and blacklist everything else for EventCode 4688.

blacklist = EventCode="4688" Message="(?:New Process Name:).+(?:cmd.exe)" will remove cmd.exe but 'Message!=' doesn't do the opposite.

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Perhaps a whitelist?

whitelist = EventCode="4688" Message="(?:New Process Name:).+(?:cmd.exe)"
---
If this reply helps you, Karma would be appreciated.

View solution in original post

benbabich
Explorer

That does work but I have some inherited blacklists that would have made it easier (for other reasons not shown in the example) to do it in blacklist.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Perhaps a whitelist?

whitelist = EventCode="4688" Message="(?:New Process Name:).+(?:cmd.exe)"
---
If this reply helps you, Karma would be appreciated.

benbabich
Explorer

I was really trying to do it in Blacklist due to some convoluted but prebuilt blacklists I inherited but I think I'll just have to build it out properly in the whitelist. It really is the best way to do it.

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

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...