All Apps and Add-ons

search "** ERROR =>"

snabel
Path Finder

Hi,

i want to search for this string in splunk index.
but i keep getting wrong results. i guess it has to do with **. how can i overcome this?

Thanks,
Snabel

Tags (2)
0 Karma

lguinn2
Legend

Use this

error
| regex _raw="\*\*\sERROR\s\=\>"

The first line searches for any event that has "error" in it, providing a first approximation to what you want. The second line uses a regular expression to find exactly the string "** ERROR =>". Note that '\s' denotes whitespace. If there are no spaces in the string, remove the \s

HTH

martin_mueller
SplunkTrust
SplunkTrust

If you're looking for "** ERROR =>" OR "** ERROR" then you're really just looking for "** ERROR" because that already matches the one with the ASCII arrow. Here's a modified version of lguinn's search which matches both examples for me:

ERROR | regex _raw="\*\*\sERROR\s"
0 Karma

snabel
Path Finder

Because, i think the logs will contain the following log prints:

| ** ERROR => SOMETHING **| or | ** ERROR **|

i thought to search for any string that looks like this:

 ** ERROR => or ** ERROR

maybe there is a better way to look for these patterns, I'm really open to any suggestions.

Thanks,
Snabel

0 Karma

linu1988
Champion

why don't you only search "ERROR =>" ? what is the significance of the ** ?

0 Karma

snabel
Path Finder

Thanks all, but still not working

here is the log prints i've in NR9 nss.log:

| ** ERROR => SOMETHING **|

That's what i'm trying to search.

Thanks,
Snabel

0 Karma

snabel
Path Finder

Hi,
it didn't work.
i wrote this in the search bar: index=* ** ERROR=>*

and i got the following results:

SWI_JS_SCRIPT_ERROR
Error
error
** ERROR =>

while i only wanted this:
** ERROR =>

is there a way to escape special characters in splunk search bar? in version 5.0.1

Thanks,
Snabel

0 Karma

splunker12er
Motivator

did u tried searching like this :

index=* **ERROR=>*
0 Karma

snabel
Path Finder

i'm working with splunk version 5.0.1

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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