Getting Data In

Rex

Khuzair81
Path Finder

field1=abcdCheck:123456wxyz, sdfCheck:234567qwe

I want get the result as Check:123456

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rex field=field1 "(?<check>Check:\d+)"

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| rex field=field1 "(?<check>Check:\d+)"

Khuzair81
Path Finder

@ITWhisperer Got one more Question

field2 = word[abcdefg_123]word

I want to get answer as : [abcdefg_123]

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| rex field=field2 "\w(?<other>\[[^\]]+\])\w"
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...