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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

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