Splunk Search

How does this search work?

jnithya
Engager

I am using the tag name in search query to filter down the app specific index, followed by "index=index1" to filter down to specific index.

tag=app_index index="ïndex1" | stats count by index  | dedup index

Same as above search query as below brings all the tagged index alone as a result,

tag=app_index index=* | stats count by index  | dedup index

Help me to understand how does the second case works . As per my understanding index=* will bring all the user specific indexes and main index.

Kindly help me on this.

Thanks

0 Karma
1 Solution

cmerriman
Super Champion

index=* will bring back all indexes. I would avoid using the wildcard, unless you have some index field values that are null that you are trying to weed out, as it takes more time to process. So tag=app_index index=* would essentially be the same as tag=app_index

View solution in original post

cmerriman
Super Champion

index=* will bring back all indexes. I would avoid using the wildcard, unless you have some index field values that are null that you are trying to weed out, as it takes more time to process. So tag=app_index index=* would essentially be the same as tag=app_index

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...