Splunk Search

How to capture 2 fields, the first part of this word (LON) and the remaining (RTI2_SND.TRACE) within the same regex?

Bradd23
Loves-to-Learn Lots

Hi i'm trying to capture 2 fields, the first part of this word (LON) and the remaining (RTI2_SND.TRACE) within the same regular expression

LON_RTI2_SND.TRACE

Thanks

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
(?<first>[^_]*)_(?<rest>.*)
0 Karma
Get Updates on the Splunk Community!

Splunk Life | Happy Pride Month!

Happy Pride Month, Splunk Community! &#x1f308; In the United States, as well as many countries around the ...

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...

Admin Your Splunk Cloud, Your Way

Join us to maximize different techniques to best tune Splunk Cloud. In this Tech Enablement, you will get ...