Splunk Search

How to extract portions of an event?

kkompalli
New Member

I have a event which is like below.

"searchString" index=ABC1............XYZ1"/searchString" 123456789 "searchString"index=ABC2.....................XYZ2"/searchString" 

I want to extract the data between "searchString" and "/searchString" .
the output should be like below

index=ABC1............XYZ1
index=ABC2.....................XYZ2
0 Karma

sundareshr
Legend

In you SPL, you could try this

.... | rex "searchString"\s(?<ss>[^"]*)"\/" | ...
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 ...