Splunk Search

Wildcard search on non-existent field search

cclva
Explorer

I have a generic search that I am using to display data for a handful of applications, which look something like this:

index=$index$ application=$app_name$ fieldA=$searchA$ fieldB=$searchB$

 

However, one of my applications do not have a `fieldA`. Therefore,  if I was to preform a search using my dashboard, this would resolve to:

index=myIndex application=application1 fieldA=* fieldB=*

 Because `fieldA` does not exist in `application1`, the search fails, and I get nothing back. 

Is there a way to resolve search criteria for fields that do not exist?

Labels (1)
0 Karma

sravankaripe
Communicator
index=myIndex application=application1 (fieldA=* OR fieldB=*)
0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...