Splunk Search

Help extracting alphanumeric string after matching pattern

harishnpandey
Explorer
{"line":"2019-10-05 03:58:11.627 ERROR [xxx-csscsc0sssscs-xxxx] 1 --- [nio-8080-exec-2] c.u.f.b.s.registryImpl  : \u003c\u003c\u003c registryImpl  : registerInformation(): caught NnaException REGISTER_NOT_FOUND productId XA363636363633 requestDate 2020-07-24",

Need help to extract those productIDs (XA363636363633) which printed as REGISTER_NOT_FOUND in log

0 Karma
1 Solution

gkapitany
Explorer

search .. |rex field=_raw ".REGISTER_NOT_FOUND\s+productId\s+(?\w+)."

View solution in original post

0 Karma

gkapitany
Explorer

search .. |rex field=_raw ".REGISTER_NOT_FOUND\s+productId\s+(?\w+)."

0 Karma

harishnpandey
Explorer

Thank you very much . it worked with small modification as

search .. |rex field=_raw "REGISTER_NOT_FOUND\s+productId\s+(?\w+)"|stats count by regNumber

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...