Splunk Search
Highlighted

How to search all indexes except for a particular few?

Communicator

Is there a way to search in all indexes except for a couple?
An example is I have about 100 index but don't want to search for sea1, sea2, sea3, sea4
Ex. index=* (not sea1, sea2, sea3, sea4) <keyword>

Thank You

Tags (3)
0 Karma
Highlighted

Re: How to search all indexes except for a particular few?

SplunkTrust
SplunkTrust

Try this.

index=* NOT (index=sea1 OR index=sea2 OR index=sea3 OR index=sea4) ...
---
If this reply helps you, an upvote would be appreciated.

View solution in original post

Highlighted

Re: How to search all indexes except for a particular few?

Communicator

Worked! Thank you...

0 Karma
Highlighted

Re: How to search all indexes except for a particular few?

Community Manager
Community Manager

Hi @rewritex

Glad you were able to find the solution you needed through @richgalloway 🙂 In addition to upvoting the user that helped you, always remember to resolve your posts by clicking "Accept" directly below the answer that solved your question. This will make it easier to find for other users with similar issues. Thanks!

0 Karma