<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic sedcmd - replace multiple asterisk with single asterisk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-replace-multiple-asterisk-with-single-asterisk/m-p/454131#M78617</link>
    <description>&lt;H1&gt;on the Linux server command line I tested sed like below and it works.&lt;/H1&gt;

&lt;P&gt;echo \"SMSESSION\", \"Value\": \"*****************************************&lt;EM&gt;\", | sed  's/[&lt;/EM&gt;]+/*/g'&lt;/P&gt;

&lt;H1&gt;"SMSESSION", "Value": "*",&lt;/H1&gt;

&lt;P&gt;but how do I apply SEDCMD to achieve the above within a props file on the Intermediate heavy forwarders.&lt;/P&gt;

&lt;P&gt;I used the following and it did not work&lt;BR /&gt;
SEDCMD-remove_star_value=s/SMSESSION", "Value":[^,\s]+/SMSESSION", "Value":X/g&lt;/P&gt;

&lt;P&gt;Can you please let me know where I am going wrong ?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:09:10 GMT</pubDate>
    <dc:creator>MeenaGoel</dc:creator>
    <dc:date>2020-09-30T01:09:10Z</dc:date>
    <item>
      <title>sedcmd - replace multiple asterisk with single asterisk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sedcmd-replace-multiple-asterisk-with-single-asterisk/m-p/454131#M78617</link>
      <description>&lt;H1&gt;on the Linux server command line I tested sed like below and it works.&lt;/H1&gt;

&lt;P&gt;echo \"SMSESSION\", \"Value\": \"*****************************************&lt;EM&gt;\", | sed  's/[&lt;/EM&gt;]+/*/g'&lt;/P&gt;

&lt;H1&gt;"SMSESSION", "Value": "*",&lt;/H1&gt;

&lt;P&gt;but how do I apply SEDCMD to achieve the above within a props file on the Intermediate heavy forwarders.&lt;/P&gt;

&lt;P&gt;I used the following and it did not work&lt;BR /&gt;
SEDCMD-remove_star_value=s/SMSESSION", "Value":[^,\s]+/SMSESSION", "Value":X/g&lt;/P&gt;

&lt;P&gt;Can you please let me know where I am going wrong ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:09:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sedcmd-replace-multiple-asterisk-with-single-asterisk/m-p/454131#M78617</guid>
      <dc:creator>MeenaGoel</dc:creator>
      <dc:date>2020-09-30T01:09:10Z</dc:date>
    </item>
  </channel>
</rss>

