Splunk Search

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

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'

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

Labels (1)
0 Karma

Ultra Champion

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

index=* "KeyError: 'ABC_DEF'"
0 Karma
.conf21 CFS Extended through 5/20!

Don't miss your chance
to share your Splunk
wisdom in-person or
virtually at .conf21!

Call for Speakers has
been extended through
Thursday, 5/20!