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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...