Splunk Search

Regex help connected string

moinyuso96
Path Finder

I would like to extract two groups which are TestName and Model. In the second row, the TestName is connected to Model cannot be extracted as two different groups.

Link for regex:

regex101: build, test, and debug regex

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Is it always MY followed by digits?

(?P<TestName>(?<=!\s)[^\s]+)\s?(?P<Model>MY\d+)

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Is it always MY followed by digits?

(?P<TestName>(?<=!\s)[^\s]+)\s?(?P<Model>MY\d+)

moinyuso96
Path Finder

Yes

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