Splunk Search

Why am I receiving specific error message from the raw output?

Sudharsanan27
Loves-to-Learn Lots

I am using the below cluster search 

| cluster t=0.1 showcount=t countfield=no_of_events | table _time,no_of_events _raw | sort -no_of_events | dedup no_of_events

in the output iam getting the entire raw message as in the table. however, i want to show only the error message.

Is there any way to extract only specific messages instead of full raw message

 

Labels (1)
0 Karma

yuanliu
SplunkTrust
SplunkTrust

That very much depends on the difference between raw message and the error message you are looking for.  The whole point of Splunk in my view is the freedom to extract any token into data field.  But you have to show what raw message contains and which part you consider an error message. (Anonymize as needed.)

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...