Splunk Search

Regex not workin

man03359
Communicator

Hi All,

Here is my how my event looks like -

 

20/11/2023 12:47:05 (01) >> AdyenProxy::AdyenPaymentResponse::ProcessPaymentFailure::Additional response -> Message : NotAllowed ; Refusal Reason : message=MessageHeader.POIID: NotAllowed Value: P400Plus-805598742, Reason: my POIID is P400Plus-805598450 

 

I am trying to extract the part "POIID: NotAllowed Value: P400Plus-805598742, Reason: my POIID is P400Plus-805598450"

I am using this regex -

| rex field=_raw "MessageHeader.+(?<POIID_Error>)-*"

But the field vale POIID_Error seems to be blank after running the query.

Attaching the ss for reference.

man03359_0-1700565263533.png

Little suggestion to fix this is appreciated.

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
MessageHeader\.(?<POIID_Error>.+)

man03359
Communicator

@ITWhisperer  

it seems to be working now , thanks a lot 🙂 🙂

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...