Splunk Search

How to search for string like "KeyError: 'ABC_DEF'"

stevenfharris
New Member

I am trying to search for log entries that contain the following: KeyError: 'ABC_DEF'

The following work, but will find all instances of ABC_DEF even if it is not accompanied by KeyError:

  • ABC DEF
  • ABC_DEF
  • 'ABC_DEF'

The following return nothing of use to me:

  • KeyError: ABC_DEF
  • KeyError: 'ABC_DEF'
  • KeyError ABC_DEF
  • KeyError ABC DEF
  • KeyError
  • "KeyError:"

What should my search look like to find the above?

Of note, the last entry above would resolve to the following Splunk query string: index=* "KeyError:"

Thank you in advance

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

It isn't clear whether you have tried these strings in double quotes or not

index=* "KeyError: 'ABC_DEF'"
0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...