Splunk Search

How to extract a string from a field using Splunk Regex?

deepaksn1214
Engager

I m having a hard time trying to extract a string from a field from a splunk search using splunk regex , can someone help pls ? 

The field looks like client_info=xxx-yyy=aaaa-bbb-cccc::4.144.1::web-app-id::plugin-id

I just want the string web-app-id and plugin-id extracted in separate fields named WebApp and Plugin

Appreciate any help on this , thanks in advance ! 

Labels (3)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| rex "::(?<WebApp>[^:]+)::(?<Plugin>[^:]+)$"
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...