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 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...