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!

Unlock Database Monitoring with Splunk Observability Cloud

In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and stall ...

Print, Leak, Repeat: UEBA Insider Threats You Can't Ignore

Are you ready to uncover the threats hiding in plain sight? Join us for "Print, Leak, Repeat: UEBA Insider ...

Splunk MCP & Agentic AI: Machine Data Without Limits

  Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization ...