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!

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Laser Bananas and Edge Hubs: Exploring Operational Technology (OT) Data Through a ...

  OT is a different environment to traditional IT and can have interesting challenges when interfacing the ...

Event Series: Mastering AI Tokenomics and Splunk Agent Observability

Beyond the Black Box: Correlating AI Performance and Tokenomics with Splunk Agent Observability   As ...