<?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 sed cmd to anonymize data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/sed-cmd-to-anonymize-data/m-p/106293#M27638</link>
    <description>&lt;P&gt;Hello,
I have a source that contains events like these:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"MONEY LEFT: 1.000,00"
"MONEY LEFT: 000,00"
"MONEY LEFT: 350,00"
"MONEY LEFT: 1290,00"
"MONEY LEFT: 50,00"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I would like to do is to anonymize the amount of money left (1.000,00 000,00 350,00 and so on). The output desired is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"MONEY LEFT: XXX,XX"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried with a sed command like these:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-nomoney = s/MONEY\sLEFT:\s(\S+)/MONEY LEFT: XXX,XX/g&amp;lt;/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it does not work all.
Maybe the sed command need to know how many characters are going to be substituted? I mean that I cannot use (\S+)&lt;/P&gt;

&lt;P&gt;Thanks for help,&lt;/P&gt;

&lt;P&gt;Luca Caldiero
Consoft Sistemi S.p.A.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Dec 2010 21:25:18 GMT</pubDate>
    <dc:creator>cafissimo</dc:creator>
    <dc:date>2010-12-17T21:25:18Z</dc:date>
    <item>
      <title>sed cmd to anonymize data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sed-cmd-to-anonymize-data/m-p/106293#M27638</link>
      <description>&lt;P&gt;Hello,
I have a source that contains events like these:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"MONEY LEFT: 1.000,00"
"MONEY LEFT: 000,00"
"MONEY LEFT: 350,00"
"MONEY LEFT: 1290,00"
"MONEY LEFT: 50,00"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I would like to do is to anonymize the amount of money left (1.000,00 000,00 350,00 and so on). The output desired is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"MONEY LEFT: XXX,XX"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried with a sed command like these:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-nomoney = s/MONEY\sLEFT:\s(\S+)/MONEY LEFT: XXX,XX/g&amp;lt;/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it does not work all.
Maybe the sed command need to know how many characters are going to be substituted? I mean that I cannot use (\S+)&lt;/P&gt;

&lt;P&gt;Thanks for help,&lt;/P&gt;

&lt;P&gt;Luca Caldiero
Consoft Sistemi S.p.A.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2010 21:25:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sed-cmd-to-anonymize-data/m-p/106293#M27638</guid>
      <dc:creator>cafissimo</dc:creator>
      <dc:date>2010-12-17T21:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: sed cmd to anonymize data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sed-cmd-to-anonymize-data/m-p/106294#M27639</link>
      <description>&lt;P&gt;The SED expression looks good to me. Can you post the whole stanza from your props.conf? Are you sure the sourcetype/source matches?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2010 23:50:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sed-cmd-to-anonymize-data/m-p/106294#M27639</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-12-17T23:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: sed cmd to anonymize data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sed-cmd-to-anonymize-data/m-p/106295#M27640</link>
      <description>&lt;P&gt;Try :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-nomoney = s/MONEY LEFT: [\d\.\,]*/MONEY LEFT: XXX,XX/g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Dec 2010 00:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sed-cmd-to-anonymize-data/m-p/106295#M27640</guid>
      <dc:creator>TheGU</dc:creator>
      <dc:date>2010-12-20T00:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: sed cmd to anonymize data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sed-cmd-to-anonymize-data/m-p/106296#M27641</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
After adding above statement in props.conf file, how can we check it, whether it can work or not through SplunkWeb.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2011 09:30:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sed-cmd-to-anonymize-data/m-p/106296#M27641</guid>
      <dc:creator>thiru53</dc:creator>
      <dc:date>2011-12-20T09:30:25Z</dc:date>
    </item>
  </channel>
</rss>

