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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

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 ...