<?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 Re: Trying to Anonymise data using SED command in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316729#M59220</link>
    <description>&lt;P&gt;Can you try below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[testing]
SEDCMD-testing = s/JSESSIONID=\w{2}\d\w{2}(\d{2}\w{2})/JSESSIONID=#####\1/g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Jan 2018 13:52:40 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-01-16T13:52:40Z</dc:date>
    <item>
      <title>Trying to Anonymise data using SED command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316727#M59218</link>
      <description>&lt;P&gt;I have been trying out to Anonymise  below logs using SED function,but its not wokring, Please find the use case below:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;10.192.1.46 - - [30/Jul/2014:23:59:15] "POST /flower_store/order.do HTTP/1.1" 200 13849 "&lt;A href="http://mystore.splunk.com/flower_store/enter_order_information.screen&amp;amp;JSESSIONID=SD5SL10FF8ADFF3" target="_blank"&gt;http://mystore.splunk.com/flower_store/enter_order_information.screen&amp;amp;JSESSIONID=SD5SL10FF8ADFF3&lt;/A&gt;" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070223 CentOS/1.5.0.10-0.1.el4.centos Firefox/1.5.0.10" 1463 2971&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;10.192.1.46 - - [30/Jul/2014:23:59:15] "POST /flower_store/order.do HTTP/1.1" 200 13849 "&lt;A href="http://mystore.splunk.com/flower_store/enter_order_information.screen&amp;amp;JSESSIONID=#####10FF8ADFF3" target="_blank"&gt;http://mystore.splunk.com/flower_store/enter_order_information.screen&amp;amp;JSESSIONID=#####10FF8ADFF3&lt;/A&gt;" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070223 CentOS/1.5.0.10-0.1.el4.centos Firefox/1.5.0.10" 1463 2971&lt;/P&gt;

&lt;P&gt;Have deployed the below configuration in Indexer as using Sed command:&lt;/P&gt;

&lt;P&gt;sourcetype is testing.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[testing]&lt;BR /&gt;
SEDCMD-testing = s/JSESSIONID=\w{2}\d\w{2}\d{2}\w{2}/JSESSIONID=#####\1/g&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:43:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316727#M59218</guid>
      <dc:creator>Venkat_16</dc:creator>
      <dc:date>2020-09-29T17:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Anonymise data using SED command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316728#M59219</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;you were missing a capture group&lt;/P&gt;

&lt;P&gt;take this regex:&lt;BR /&gt;
&lt;CODE&gt;s/JSESSIONID=\w{2}\d\w{2}(\d{2}\w{2})/JSESSIONID=#####\1/g&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 13:46:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316728#M59219</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2018-01-16T13:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Anonymise data using SED command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316729#M59220</link>
      <description>&lt;P&gt;Can you try below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[testing]
SEDCMD-testing = s/JSESSIONID=\w{2}\d\w{2}(\d{2}\w{2})/JSESSIONID=#####\1/g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jan 2018 13:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316729#M59220</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-16T13:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Anonymise data using SED command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316730#M59221</link>
      <description>&lt;P&gt;hey try this run anywhere search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval raw="10.192.1.46 - - [30/Jul/2014:23:59:15] \"POST /flower_store/order.do HTTP/1.1\" 200 13849 \"http://mystore.splunk.com/flower_store/enter_order_information.screen&amp;amp;JSESSIONID=SD5SL10FF8ADFF3\" \"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070223 CentOS/1.5.0.10-0.1.el4.centos Firefox/1.5.0.10\" 1463 2971" | rex field=raw mode=sed "s/JSESSIONID=(\w{2}\d\w{2})/JSESSIONID=#####/g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ideally in your environment you should wirte&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[testing]
SEDCMD-testing = s/JSESSIONID=(\w{2}\d\w{2})/JSESSIONID=#####/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps !&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 14:00:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316730#M59221</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-16T14:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Anonymise data using SED command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316731#M59222</link>
      <description>&lt;P&gt;I guess all your answers  helped me thanks alot for that...i liked this one beucase it helped us learn a new command....make results...thanks aton&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 14:04:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316731#M59222</guid>
      <dc:creator>Venkat_16</dc:creator>
      <dc:date>2018-01-16T14:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Anonymise data using SED command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316732#M59223</link>
      <description>&lt;P&gt;Thanks alot it works!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 14:04:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316732#M59223</guid>
      <dc:creator>Venkat_16</dc:creator>
      <dc:date>2018-01-16T14:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Anonymise data using SED command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316733#M59224</link>
      <description>&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 14:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trying-to-Anonymise-data-using-SED-command/m-p/316733#M59224</guid>
      <dc:creator>Venkat_16</dc:creator>
      <dc:date>2018-01-16T14:04:35Z</dc:date>
    </item>
  </channel>
</rss>

