<?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: How to mask sensitive data at index time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-sensitive-data-at-index-time/m-p/328261#M60928</link>
    <description>&lt;P&gt;SEDCMD- , Is this class name user-defined?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2018 06:41:56 GMT</pubDate>
    <dc:creator>bestSplunker</dc:creator>
    <dc:date>2018-04-24T06:41:56Z</dc:date>
    <item>
      <title>How to mask sensitive data at index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-sensitive-data-at-index-time/m-p/328258#M60925</link>
      <description>&lt;P&gt;I am trying to mask PII data at index time. Here is an example of PII data I am trying to mask:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;RecipientSSNxxx-xx-4321RecipientSSN
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am able to mask it at search time using this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        source= mysource 
        | rex "(?RecipientSSN\d{3}\-\d{2}\-\d{4})" 
        | rex field=RecipientSSN mode=sed "s/\d{3}-\d{2}/XXX-XX/g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I need it to masked at index time. I have tried the following in props.conf and transforms.conf (system\local for both):&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[nsb_message]
TRANSFORMS-anonymize = ssn-anonymizer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ssn-anonymizer]
regex = (\d{3}\-\d{2}\-)(\d{4})
FORMAT= $1XXX-XX-$2
DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have restarted Splunk, input new test files via index file monitors one-time, and the SSN is still not masked. Any help would be appreciated. I verified that the sourcetype does exist in the inputs.conf (system\local) as well.&lt;/P&gt;

&lt;P&gt;Any help or pointers would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 16:44:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-sensitive-data-at-index-time/m-p/328258#M60925</guid>
      <dc:creator>MWAKburns</dc:creator>
      <dc:date>2017-06-06T16:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask sensitive data at index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-sensitive-data-at-index-time/m-p/328259#M60926</link>
      <description>&lt;P&gt;How about following the simple SED example here: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedata#Anonymize_data_through_a_sed_script"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedata#Anonymize_data_through_a_sed_script&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[nsb_message]
SEDCMD-ssn_anon = s/RecipientSSN(\d{3}-\d{2}-)(\d{4})/RecipientSSNXXX-XX-\2/g  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-sensitive-data-at-index-time/m-p/328259#M60926</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-06-06T17:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask sensitive data at index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-sensitive-data-at-index-time/m-p/328260#M60927</link>
      <description>&lt;P&gt;That worked! Thanks rjthibod!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:34:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-sensitive-data-at-index-time/m-p/328260#M60927</guid>
      <dc:creator>MWAKburns</dc:creator>
      <dc:date>2017-06-06T17:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask sensitive data at index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-sensitive-data-at-index-time/m-p/328261#M60928</link>
      <description>&lt;P&gt;SEDCMD- , Is this class name user-defined?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 06:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-sensitive-data-at-index-time/m-p/328261#M60928</guid>
      <dc:creator>bestSplunker</dc:creator>
      <dc:date>2018-04-24T06:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask sensitive data at index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-sensitive-data-at-index-time/m-p/328262#M60929</link>
      <description>&lt;P&gt;From doc: &lt;CODE&gt;Any text after SEDCMD- can be any string that helps you identify what the transformation script does.  The clause must exist because it and the SEDCMD stem form the class name for the script&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 19:38:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-sensitive-data-at-index-time/m-p/328262#M60929</guid>
      <dc:creator>ss026381</dc:creator>
      <dc:date>2019-06-07T19:38:06Z</dc:date>
    </item>
  </channel>
</rss>

