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!

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, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...