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!

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