Splunk Search

Adjust fieldvalue (regex)

HeinzWaescher
Motivator

Hi,

I've got some fieldvalues like this:

field=aaaaaaaabbbbccccddddeeeeeeeeeeee

I would like to add a "-" after character 8,12,16 and 20:

field=aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee

Thanks for your help

Heinz

Tags (3)
0 Karma
1 Solution

dmlee
Communicator

Hi

if the length of this field is fixed , you can try this

alt text

View solution in original post

dmlee
Communicator

Hi

if the length of this field is fixed , you can try this

alt text

HeinzWaescher
Motivator

Hi dmlee,

yes, the length is fixed. "new_Heinz" is exaclty what I need 🙂 Thanks a lot!

0 Karma
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,  ...