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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...