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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...