<?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 account numbers in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79335#M16260</link>
    <description>&lt;P&gt;Another, perhaps simpler, way of accomplishing this is by using &lt;CODE&gt;SEDCMD&lt;/CODE&gt;.  See &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedatawithsed"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedatawithsed&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2011 19:53:56 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2011-09-21T19:53:56Z</dc:date>
    <item>
      <title>Masking account numbers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79330#M16255</link>
      <description>&lt;P&gt;Hello we are trying to mask an account#'s last 5 digits. I have added this to props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[annon]
TRANSFORMS-anonymize = hideacct-number
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and this to transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[hideacct-number]
REGEX=(.*AcctCode=\d{5}-).*
FORMAT=$1xxxxx
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I stopped splunk and cleaned the index and then started it again and the account numbers are still there completely. What are we missing?&lt;/P&gt;

&lt;P&gt;Update: I am using 4.2.3 and I am trying to mask the last 5 characters with X's. I am trying JSapienza's answer now and will keep you posted. Thanks!&lt;/P&gt;

&lt;P&gt;Update2: That did not help. It does not change my data. I tried REPORT as well with the same results.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2011 17:37:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79330#M16255</guid>
      <dc:creator>KarlGechlik</dc:creator>
      <dc:date>2011-09-21T17:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Masking account numbers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79331#M16256</link>
      <description>&lt;P&gt;If I'm not mistaken, I think you need to set the DEST_KEY = _raw  so the indexer knows to mask at index time from the raw event.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2011 18:15:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79331#M16256</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-09-21T18:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Masking account numbers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79332#M16257</link>
      <description>&lt;P&gt;Karl,&lt;BR /&gt;
Can you provide some additional information? It is always helpful to understand what version you are running.&lt;/P&gt;

&lt;P&gt;Also can explain in a little more detail what you are trying to do? Are you attempting to take an account number that is in the format ##### to replace the "numbers" with "xxxxx"?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2011 18:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79332#M16257</guid>
      <dc:creator>gekoner</dc:creator>
      <dc:date>2011-09-21T18:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Masking account numbers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79333#M16258</link>
      <description>&lt;P&gt;This did not help. I added this to transforms.conf and it still does not modify the data in the field at all.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2011 18:25:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79333#M16258</guid>
      <dc:creator>KarlGechlik</dc:creator>
      <dc:date>2011-09-21T18:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Masking account numbers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79334#M16259</link>
      <description>&lt;P&gt;Turns out it was a combination of JSapienza's answer and removing my header in props.conf:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;P&gt;EXTRACT-&lt;TRADERID&gt; = .&lt;EM&gt;TraderID:(?&lt;TRADERID&gt;.&lt;/TRADERID&gt;&lt;/EM&gt;)&lt;/TRADERID&gt;&lt;/P&gt;

&lt;P&gt;TRANSFORMS = hideacct-number&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;P&gt;[hideacct-number]&lt;BR /&gt;
DEST_KEY =_raw&lt;BR /&gt;
REGEX=(.&lt;EM&gt;AcctCode=\d{5}-).&lt;/EM&gt;&lt;BR /&gt;
FORMAT=$1xxxxx&lt;/P&gt;

&lt;P&gt;and apparently the DEST_KEY =_raw needs to be at the top of transforms.conf&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:53:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79334#M16259</guid>
      <dc:creator>KarlGechlik</dc:creator>
      <dc:date>2020-09-28T09:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Masking account numbers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79335#M16260</link>
      <description>&lt;P&gt;Another, perhaps simpler, way of accomplishing this is by using &lt;CODE&gt;SEDCMD&lt;/CODE&gt;.  See &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedatawithsed"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedatawithsed&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2011 19:53:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79335#M16260</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-09-21T19:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Masking account numbers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79336#M16261</link>
      <description>&lt;P&gt;Another way, albeit external and not free, is with a third-party masking tool for the data sources you would index into Splunk. I found this:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.iri.com/blog/data-protection/secure-then-splunk-a-format-preserving-encryption-and-pseduonymization-example/"&gt;http://www.iri.com/blog/data-protection/secure-then-splunk-a-format-preserving-encryption-and-pseduonymization-example/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2015 13:48:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Masking-account-numbers/m-p/79336#M16261</guid>
      <dc:creator>MicroAlpha</dc:creator>
      <dc:date>2015-03-20T13:48:46Z</dc:date>
    </item>
  </channel>
</rss>

