Splunk Search

SEDCMD: How to change the format of my data collection?

khyoung7410
Communicator

Hi

The format of my data collection is as follows.

There are a total of 29 letters and numbers.

* Sample data
D0064659949080052811436122722

Can I replace the 13th to 25th digit with a space in these data?

This is the type of data I want:

<pre>D00646599490             2722</pre>

Thank you

Tags (2)
0 Karma
1 Solution

FrankVl
Ultra Champion

Sure, I think the following should work: SEDCMD = s/(.{12}).{13}(.*)/\1 \2/g

View solution in original post

0 Karma

FrankVl
Ultra Champion

Sure, I think the following should work: SEDCMD = s/(.{12}).{13}(.*)/\1 \2/g

0 Karma
Get Updates on the Splunk Community!

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

Introducing the 2024 SplunkTrust!

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