Splunk Search

remove all text before certain words in events

trilocho
Loves-to-Learn

I have events like below

-a3bcd: Info1234x:NullValue

-a3bcd: Info1234x:NullValue

-b3bcd: Info1234x:NullValue2

-c3bcd: Info1234x:NullValue3

 

I managed to produce a table like these

ErrorInfo                                                     Count

a3bcd: Info1234x:NullValue               2

-b3bcd: Info1234x:NullValue2           1

-c3bcd: Info1234x:NullValue3           1

I would like to condense those events into one since they are all same kind of error just different paramter

so it would be like

ErrorInfo                                                     Count

Info1234x:                                                   1


Thanks in advance

 

 

 

 

Labels (3)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| eval ErrorInfo = mvindex(split(ErrorInfo, ":"),1)
0 Karma

trilocho
Loves-to-Learn

It didt work

0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...