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
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...