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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...