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 (2)
0 Karma

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

Enterprise Security Content Update (ESCU) | New Releases

In January, the Splunk Threat Research Team had one release of new security content via the Splunk ES Content ...

Expert Tips from Splunk Professional Services, Ensuring Compliance, and More New ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Observability Release Update: AI Assistant, AppD + Observability Cloud Integrations & ...

This month’s releases across the Splunk Observability portfolio deliver earlier detection and faster ...