<?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: Mask a Credit Card from a CSV file using transforms and props files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Mask-a-Credit-Card-from-a-CSV-file-using-transforms-and-props/m-p/379837#M68605</link>
    <description>&lt;P&gt;I forgot to mention that I want the format like the 4 digits of the credit card visible and the last 4 digits too.&lt;/P&gt;

&lt;P&gt;Example of the first occurrency&lt;/P&gt;

&lt;P&gt;HOw is it now: 4152312098821234&lt;BR /&gt;
How i want it: 4152########1234&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2019 00:17:35 GMT</pubDate>
    <dc:creator>cesar_tomas</dc:creator>
    <dc:date>2019-03-26T00:17:35Z</dc:date>
    <item>
      <title>Mask a Credit Card from a CSV file using transforms and props files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Mask-a-Credit-Card-from-a-CSV-file-using-transforms-and-props/m-p/379836#M68604</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I am new at masking data and I want to mask a field wich corresponds to a TDC from a CSV file.&lt;/P&gt;

&lt;P&gt;Here are sample of data that is already indexed in Splunk:&lt;/P&gt;

&lt;P&gt;10,I,T10,&lt;STRONG&gt;4152312098821234&lt;/STRONG&gt;,05/05/2018,12:43:12 a. m.," $1,000.00 " &lt;BR /&gt;
19,R,T19,&lt;STRONG&gt;4152312098348591&lt;/STRONG&gt;,05/05/2018,09:43:12 a. m.," $1,900.00 "&lt;/P&gt;

&lt;P&gt;If you look the third field is the credit card number.&lt;/P&gt;

&lt;P&gt;I have set the next things in &lt;STRONG&gt;Transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[tdc-anonymizer]&lt;BR /&gt;
REGEX = ^(?:[^,\n]*,){3}&lt;BR /&gt;
FORMAT = \d{4}########\d{4}&lt;BR /&gt;
DEST_KEY = _raw&lt;/P&gt;

&lt;P&gt;I have set the next in &lt;STRONG&gt;propf.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[csv]&lt;BR /&gt;
REPORT-anonymize = tdc-anonymizer&lt;/P&gt;

&lt;P&gt;But it does not work, can anyone please help me ??&lt;/P&gt;

&lt;P&gt;I have also try this pair of options  in &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt; but do not work too&lt;/P&gt;

&lt;P&gt;[tdc-anonymizer]&lt;BR /&gt;
REGEX = ^(?:[^,\n]*,){3}$&lt;BR /&gt;
FORMAT = $1\d{4}########\d{4}$2&lt;BR /&gt;
DEST_KEY = _raw&lt;/P&gt;

&lt;P&gt;[tdc-anonymizer]&lt;BR /&gt;
REGEX = ^(?:[^,\n]*,){3}$(?P\d{16})&lt;BR /&gt;
FORMAT = $1\d{4}########\d{4}$2&lt;BR /&gt;
DEST_KEY = _raw&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 00:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Mask-a-Credit-Card-from-a-CSV-file-using-transforms-and-props/m-p/379836#M68604</guid>
      <dc:creator>cesar_tomas</dc:creator>
      <dc:date>2019-03-26T00:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Mask a Credit Card from a CSV file using transforms and props files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Mask-a-Credit-Card-from-a-CSV-file-using-transforms-and-props/m-p/379837#M68605</link>
      <description>&lt;P&gt;I forgot to mention that I want the format like the 4 digits of the credit card visible and the last 4 digits too.&lt;/P&gt;

&lt;P&gt;Example of the first occurrency&lt;/P&gt;

&lt;P&gt;HOw is it now: 4152312098821234&lt;BR /&gt;
How i want it: 4152########1234&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 00:17:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Mask-a-Credit-Card-from-a-CSV-file-using-transforms-and-props/m-p/379837#M68605</guid>
      <dc:creator>cesar_tomas</dc:creator>
      <dc:date>2019-03-26T00:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mask a Credit Card from a CSV file using transforms and props files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Mask-a-Credit-Card-from-a-CSV-file-using-transforms-and-props/m-p/379838#M68606</link>
      <description>&lt;P&gt;Do you want to mask already indexed data or you want to mask new data which will ingest into splunk ? If you want to mask already indexed data then it is not possible because you can't alter indexed data in bucket.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 10:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Mask-a-Credit-Card-from-a-CSV-file-using-transforms-and-props/m-p/379838#M68606</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-27T10:36:41Z</dc:date>
    </item>
  </channel>
</rss>

