Splunk Search

How to combine values into one so that there is 1 exclusion that covers both values?

verifi81
Path Finder

Howdy folks

This is my field:

ABC_Account_Name

 

I want to exclude these values:

mcas*
gmcas*

I know I can do it this way:

ABC_Account_Name!=mcas ABC_Account_Name!=gmcas

 

how do I combine them into one so that I have 1 exclusion that covers both values?

 

Labels (2)
0 Karma
1 Solution

SanjayReddy
SplunkTrust
SplunkTrust

Hi @verifi81 

please try this

NOT ABC_Account_Name IN  ("mcas*" ,"gmcas*")

---
If this reply helps you, an upvote/Karma would be appreciated.

View solution in original post

SanjayReddy
SplunkTrust
SplunkTrust

Hi @verifi81 

please try this

NOT ABC_Account_Name IN  ("mcas*" ,"gmcas*")

---
If this reply helps you, an upvote/Karma would be appreciated.

Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...