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!

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