Knowledge Management

Why can't you use a wildcard when searching for tags (tag=*)?

fmarquez-miles_
Splunk Employee
Splunk Employee

I've always known that you can't search tag=* but I never knew why. Maybe the old-time splunkers can elighten me?

0 Karma

renjith_nair
Legend

It's possible to search by tag=*. Are you getting any error or no results are returned.

I have created a tag for two sourcetypes and both are returned. Splunk just expands the search by substituting each value of tag with OR condition. You can have a look at the job inspector to see your final search and it might provide you the reason. For eg: you have two contradictory searches joined with OR . I

See attached screen shotalt text

It might be a permission issue also . for eg: index by default is not enabled and always have to provide index=yourindex in the search

---
What goes around comes around. If it helps, hit it with Karma 🙂
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...