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 :slightly_smiling_face: :slightly_smiling_face:

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...