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!

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...