Getting Data In

How to filter out results based on 2 values in an event?

Sparky1
Explorer

I'm trying to use a where command to filter a search based on 2 values in an event.

So something like where host!=Domain Controller1 and Message!="Bad Username"

But doing it this way is filtering any events that match either host or Message. How can I filter results based on 2 field values?

0 Karma
1 Solution

kmaron
Motivator

Try using NOT (host=DomainController1 AND Message="Bad Username")

View solution in original post

kmaron
Motivator

Try using NOT (host=DomainController1 AND Message="Bad Username")

Get Updates on the Splunk Community!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...