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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...