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!

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 ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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