Splunk Search

How to parse these events?

ravikumar_sri20
Engager
Hi Experts,

I have below events

Event 1 : TRANEND TRANS ABENDS TRN1 ABN1 blah blah
Event 2 : TRANEND CICS_TRAN_Abends CICT1 TRN3 ABN3 blah blah
Event 3 : TRANSUMM CICS_TSUM_Rate CICT1 = * blah blah
Event 4 : TRANDYN TRANS ABENDS TRN2 ABN2 blah blah
Event 5 : SYSTEM CICS_RDSA_MaxFree CICt2 * * blah blah
Event 6 : TRANDYN CICS_TRAN_Abends CICT1 TRN4 ABN4 blah blah

I want below output

Traction Abend code
TRN1 ABN1
TRN3 ABN3
TRN2 ABN2
TRN4 ABN4

Events 2,3,5 needs to be excluded from the result

Could you please help me ?

Thanks,
Ravikumar

 

Labels (1)
0 Karma

ravikumar_sri20
Engager

Hi,

Below are the sample events

Event 1 : TRANEND TRANS ABENDS TRN1 ABN1 blah blah
Event 2 : TRANEND CICS_TRAN_Abends CICT1 TRN3 ABN3 blah blah
Event 3 : TRANSUMM CICS_TSUM_Rate CICT1 = * blah blah
Event 4 : TRANDYN TRANS ABENDS TRN2 ABN2 blah blah
Event 5 : SYSTEM CICS_RDSA_MaxFree CICt2 * * blah blah
Event 6 : TRANDYN CICS_TRAN_Abends CICT1 TRN4 ABN4 blah blah

Events containing below text should be in output. So, Events 2,3,5 need to be excluded from the result
"TRANEND TRANS ABENDS"
"TRANEND CICS_TRAN_Abends"
"TRANDYN TRANS ABENDS"
"TRANDYN CICS_TRAN_Abends"


I want below output

Traction Abend code
TRN1 ABN1
TRN3 ABN3
TRN2 ABN2
TRN4 ABN4


Thanks,
Ravikumar

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @ravikumar_sri20,

what are the rules to exclude ot include an event?

could you share a sample of your events?

Ciao.

Giuseppe

0 Karma

ravikumar_sri20
Engager

Hi,

Below are the sample events

Event 1 : TRANEND TRANS ABENDS TRN1 ABN1 blah blah
Event 2 : TRANEND CICS_TRAN_Abends CICT1 TRN3 ABN3 blah blah
Event 3 : TRANSUMM CICS_TSUM_Rate CICT1 = * blah blah
Event 4 : TRANDYN TRANS ABENDS TRN2 ABN2 blah blah
Event 5 : SYSTEM CICS_RDSA_MaxFree CICt2 * * blah blah
Event 6 : TRANDYN CICS_TRAN_Abends CICT1 TRN4 ABN4 blah blah

Events containing below text should be in output. So, Events 2,3,5 need to be excluded from the result
"TRANEND TRANS ABENDS"
"TRANEND CICS_TRAN_Abends"
"TRANDYN TRANS ABENDS"
"TRANDYN CICS_TRAN_Abends"


I want below output

Traction Abend code
TRN1 ABN1
TRN3 ABN3
TRN2 ABN2
TRN4 ABN4


Thanks,
Ravikumar

Tags (1)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...