<?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: Masking SSN info into splunk at index time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100067#M97536</link>
    <description>&lt;P&gt;Johnsu, just so you know.  You can edit your own answers.  That's preferred over posting new ones.  Thanks for taking the time to post your corrections!&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2014 15:06:26 GMT</pubDate>
    <dc:creator>Lowell</dc:creator>
    <dc:date>2014-07-03T15:06:26Z</dc:date>
    <item>
      <title>Masking SSN info into splunk at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100062#M97531</link>
      <description>&lt;P&gt;I would like to know how to mask SSN information in splunk at index time. There is a documentation available on the splunk homepage. But the question arises that whether configurations of props.conf and transforms.conf be done at the indexer side as we have a multi-tiered splunk network? Then, the other question is how do I compile a rex expression for masking SSN data from the followin log source:&lt;/P&gt;

&lt;P&gt;index=web sourcetype=weblogic_app ssn&lt;/P&gt;

&lt;P&gt;&lt;STATS xmlns="http://esb.tiaa.org" begin="2013-01-18T00:22:34.443-05:00" end="2013-01-18T00:22:34.452-05:00" ms="9" respsize="3485"&gt;&lt;BR /&gt;
&lt;CALL begin="2013-01-18T00:22:34.444-05:00" end="2013-01-18T00:22:34.444-05:00" ms="0" target="Getting Instance of service-work-cache"&gt;&lt;/CALL&gt;&lt;BR /&gt;
&lt;CALL begin="2013-01-18T00:22:34.445-05:00" end="2013-01-18T00:22:34.451-05:00" ms="6" target="service-work-cache::get participant"&gt;&lt;/CALL&gt;&lt;BR /&gt;
&lt;/STATS&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.comenv:Header"&gt;/env:Header&lt;/A&gt;&lt;BR /&gt;
&lt;A href="env:Body"&gt;env:Body&lt;/A&gt;&lt;BR /&gt;
&lt;RETRIEVECONTRACTSWITHPRODUCTINFORESPONSE NS2="http://esb.tiaa.org/participant-portfolio-v1/types" NS3="http://esb.tiaa.org"&gt;&lt;BR /&gt;
&lt;A href="ns2:ContractsWithProductInfoResponse"&gt;ns2:ContractsWithProductInfoResponse&lt;/A&gt;&lt;BR /&gt;
&lt;A href="ns2:ParticipantDetails"&gt;ns2:ParticipantDetails&lt;/A&gt;&lt;BR /&gt;
*&lt;STRONG&gt;&lt;EM&gt;&lt;A href="ns2:Pin"&gt;ns2:Pin&lt;/A&gt;2895237&lt;A href="https://answers.splunk.comns2:Pin"&gt;/ns2:Pin&lt;/A&gt;&lt;BR /&gt;
&lt;A href="ns2:SSN"&gt;ns2:SSN&lt;/A&gt;&lt;ACTUAL ssn="" shows=""&gt;&lt;A href="https://answers.splunk.comns2:SSN"&gt;/ns2:SSN&lt;/A&gt;&lt;/ACTUAL&gt;&lt;/EM&gt;&lt;/STRONG&gt;*&lt;/RETRIEVECONTRACTSWITHPRODUCTINFORESPONSE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2013 14:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100062#M97531</guid>
      <dc:creator>mike7860</dc:creator>
      <dc:date>2013-01-25T14:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Masking SSN info into splunk at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100063#M97532</link>
      <description>&lt;P&gt;Check out the Splunk Doc page at &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.1/Data/Anonymizedatausingconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/4.2.1/Data/Anonymizedatausingconfigurationfiles&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;It includes a SED example that fits closely to what you are wanting to do. The only difference is your data is XML formatted versus the 'straight' text of the doc example but that is not big deal to deal with in the RegEx you'd use to pinpoint your data to mask.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2013 15:44:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100063#M97532</guid>
      <dc:creator>rgcurry</dc:creator>
      <dc:date>2013-01-25T15:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Masking SSN info into splunk at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100064#M97533</link>
      <description>&lt;P&gt;Regex for masking Social Security Number in XML TAG&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;relatedPolicies /&amp;gt;
&amp;lt;socialSecurityNumber&amp;gt;###-##-1234&amp;lt;/socialSecurityNumber&amp;gt;
&amp;lt;ssnRefusedIndicator&amp;gt;false&amp;lt;/ssnRefusedIndicator&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SSN-anonymizer]
REGEX = (?ms)^(.*)\&amp;lt;[sS]ocialSecurityNumber&amp;gt;\d{3}-?\d{2}-?(\d{4}.*)$
FORMAT = $1&amp;lt;socialSecurityNumber&amp;gt;###-##-$2
DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note:&lt;BR /&gt;
   In Splunk V6.0.1 &lt;BR /&gt;
   In my testing, masking function failed if the record is very large, for example 15KB,  and SSB is out of 100 lines (or some position) .&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Sincerely&lt;BR /&gt;
John Hsu&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2014 17:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100064#M97533</guid>
      <dc:creator>johnhsu</dc:creator>
      <dc:date>2014-02-07T17:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Masking SSN info into splunk at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100065#M97534</link>
      <description>&lt;P&gt;Corrected: Don't know why missed the star "&lt;EM&gt;" after those two dot in post&lt;BR /&gt;
Try post again:&lt;BR /&gt;
"REGEX = (?ms)^(.&lt;/EM&gt;)&amp;lt;[sS]ocialSecurityNumber&amp;gt;\d{3}-?\d{2}-?(\d{4}.*)$"&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Sincerely&lt;BR /&gt;
John Hsu&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2014 18:06:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100065#M97534</guid>
      <dc:creator>johnhsu</dc:creator>
      <dc:date>2014-02-07T18:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Masking SSN info into splunk at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100066#M97535</link>
      <description>&lt;P&gt;Sorry! Try again&lt;/P&gt;

&lt;P&gt;should be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (?ms)^(.\*)\&amp;lt;[sS]ocialSecurityNumber&amp;gt;\d{3}-?\d{2}-?(\d{4}.\*)$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Sincerely &lt;BR /&gt;
John Hsu&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2014 18:23:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100066#M97535</guid>
      <dc:creator>johnhsu</dc:creator>
      <dc:date>2014-02-07T18:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Masking SSN info into splunk at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100067#M97536</link>
      <description>&lt;P&gt;Johnsu, just so you know.  You can edit your own answers.  That's preferred over posting new ones.  Thanks for taking the time to post your corrections!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 15:06:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100067#M97536</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2014-07-03T15:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Masking SSN info into splunk at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100068#M97537</link>
      <description>&lt;P&gt;try the sedcmd command in the props.conf, and deploy on your parsing instances :&lt;BR /&gt;
see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/Data/Anonymizedatausingconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/Data/Anonymizedatausingconfigurationfiles&lt;/A&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;on all indexers&lt;/LI&gt;
&lt;LI&gt;on all heavy forwarders&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;in case of csv/iis or INDEXED_EXTRACTION sourcetypes (since splunk 6.1), on the forwarders (even the Universal and Lightweight)&lt;/P&gt;

&lt;P&gt;[mysourcetype]&lt;BR /&gt;
SEDCMD-hidessn=s/(GovernmentIDNumber: SSN: \d{3})(\d{6})/\1xxxxxxx/g&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;GovernmentIDNumber: SSN: 555666666 &lt;BR /&gt;
-&amp;gt;  GovernmentIDNumber: SSN: 555xxxxxxx&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 16:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-SSN-info-into-splunk-at-index-time/m-p/100068#M97537</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-10-15T16:42:35Z</dc:date>
    </item>
  </channel>
</rss>

