<?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: SEDCMD to anonymize CC data isnt working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37061#M6855</link>
    <description>&lt;P&gt;ok, so can i take the string out altogether and simply match all 16 digit numbers in this log?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2013 02:08:44 GMT</pubDate>
    <dc:creator>doreno</dc:creator>
    <dc:date>2013-02-20T02:08:44Z</dc:date>
    <item>
      <title>SEDCMD to anonymize CC data isnt working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37051#M6845</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Ive been playing with the SEDCMD in my props.conf to anonymize CC data in a log.  &lt;/P&gt;

&lt;P&gt;Originally I tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::nas.x.com]
SEDCMD-cc_anon = s/strRtCardNum:\s+\d{16}/strRtCardNum: ################/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I changed that based on the splunk example given: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-accounts = s/ssn=\d{5}(\d{4})/ssn=xxxxx\1/g s/cc=(\d{4}-){3}(\d{4})/cc=xxxx-xxxx-xxxx-\2/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So now its this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::nas.x.com]
SEDCMD-cc_anon = s/strRtCardNum=\s+\d{16}/strRtCardNum= ################/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And its still not working. This is getting frustrating. Has anyone gotten this to work right? What am I doing wrong? &lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 19:03:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37051#M6845</guid>
      <dc:creator>doreno</dc:creator>
      <dc:date>2013-02-19T19:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to anonymize CC data isnt working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37052#M6846</link>
      <description>&lt;P&gt;Can you provide a sample of the an original event ? (just set the cc number to 99999999999999 or something.&lt;/P&gt;

&lt;P&gt;whats after the string &lt;CODE&gt;strRtCardNum&lt;/CODE&gt;  is it a : or a = ?&lt;BR /&gt;
Is there really a space before the card number ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 20:31:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37052#M6846</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-02-19T20:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to anonymize CC data isnt working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37053#M6847</link>
      <description>&lt;P&gt;Is this done on a Universal Forwarder or an indexer?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 20:34:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37053#M6847</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-02-19T20:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to anonymize CC data isnt working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37054#M6848</link>
      <description>&lt;P&gt;Its in a props.conf that is being sent to all indexers with the deployment server. &lt;/P&gt;

&lt;P&gt;Heres some sample data. &lt;/P&gt;

&lt;P&gt;CheckoutServices.finishPaymentStartOrderReview: inside is mode check Shopper: 5555555&lt;BR /&gt;
CheckoutServices.finishPaymentStartOrderReview: ccNum: 9999999999999999 Shopper: 5555555&lt;/P&gt;

&lt;P&gt;strRTCardNum was something the splunk consultant put in before he left, though im not sure where he got it. Its never worked right.  &lt;/P&gt;

&lt;P&gt;Thanks guys!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 20:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37054#M6848</guid>
      <dc:creator>doreno</dc:creator>
      <dc:date>2013-02-19T20:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to anonymize CC data isnt working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37055#M6849</link>
      <description>&lt;P&gt;Well if the string "strRTCardNum" isn't in your event, then a regex looking for that string will obviously not match.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 20:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37055#M6849</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-02-19T20:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to anonymize CC data isnt working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37056#M6850</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;[host::nas.x.com]
SEDCMD-cc_anon = s/ccNum:\s+\d{16}/ccNum: ################/ s/Shopper:\s+\d+/Shopper: #####/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;providing the data comes from host called nas.x.com&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 21:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37056#M6850</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-02-19T21:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to anonymize CC data isnt working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37057#M6851</link>
      <description>&lt;P&gt;Thank you sir. Im trying this now and will let you know what happens.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 23:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37057#M6851</guid>
      <dc:creator>doreno</dc:creator>
      <dc:date>2013-02-19T23:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to anonymize CC data isnt working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37058#M6852</link>
      <description>&lt;P&gt;I've found using perl on the command line is the easiest way to troubleshoot SEDCMD&lt;BR /&gt;
i.e. &lt;BR /&gt;
 perl -pe 's/ccNum:\s([0-9]{16})/ccNum: xxxx/g' &lt;FILE_WITH_SAMPLE_DATA&gt;&lt;/FILE_WITH_SAMPLE_DATA&gt;&lt;/P&gt;

&lt;P&gt;It's a quick way to see if the SEDCMD works at all, and if the output is in the format you're trying to get&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 01:24:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37058#M6852</guid>
      <dc:creator>mbenwell</dc:creator>
      <dc:date>2013-02-20T01:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to anonymize CC data isnt working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37059#M6853</link>
      <description>&lt;P&gt;Awesome, that worked! Only problem is now I found some 15 digit american express cards that also need to be blocked out but I think I can figure that out. Thank you gentlemen very much!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 01:29:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37059#M6853</guid>
      <dc:creator>doreno</dc:creator>
      <dc:date>2013-02-20T01:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to anonymize CC data isnt working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37060#M6854</link>
      <description>&lt;P&gt;try modifying \d{16} to \d{15,16}&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 01:40:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37060#M6854</guid>
      <dc:creator>mbenwell</dc:creator>
      <dc:date>2013-02-20T01:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to anonymize CC data isnt working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37061#M6855</link>
      <description>&lt;P&gt;ok, so can i take the string out altogether and simply match all 16 digit numbers in this log?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 02:08:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37061#M6855</guid>
      <dc:creator>doreno</dc:creator>
      <dc:date>2013-02-20T02:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to anonymize CC data isnt working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37062#M6856</link>
      <description>&lt;P&gt;yeah, something like &lt;BR /&gt;
 s/\d{15,16}/xxxx/g&lt;BR /&gt;
should work to replace all instances of 15 or 16 consecutive numbers&lt;BR /&gt;
The "ccNum" string before hand is just to ensure the digits being matched are always after the string ccNum&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 02:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-to-anonymize-CC-data-isnt-working/m-p/37062#M6856</guid>
      <dc:creator>mbenwell</dc:creator>
      <dc:date>2013-02-20T02:57:07Z</dc:date>
    </item>
  </channel>
</rss>

