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!

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

How to find the worst searches in your Splunk environment and how to fix them

Everyone knows Splunk is a powerful platform for running searches and doing data analytics. Your ...

Share Your Feedback: On Admin Config Service (ACS)!

Help Us Build a Better Admin Config Service Experience (ACS)   We Want Your Feedback on Admin Config Service ...