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
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...