Getting Data In

sedcmd - replace multiple asterisk with single asterisk

MeenaGoel
Engager

on the Linux server command line I tested sed like below and it works.

echo \"SMSESSION\", \"Value\": \"*****************************************\", | sed 's/[]+/*/g'

"SMSESSION", "Value": "*",

but how do I apply SEDCMD to achieve the above within a props file on the Intermediate heavy forwarders.

I used the following and it did not work
SEDCMD-remove_star_value=s/SMSESSION", "Value":[^,\s]+/SMSESSION", "Value":X/g

Can you please let me know where I am going wrong ?

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...