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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...