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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...