<?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: anonymizing credit card numbers using props.conf and transforms .conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608603#M105579</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248349"&gt;@gotenzw&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;, the behavior you described is correct: you transform a credit card number (16 digits) if you have a number with 16 digits in that field, if you have anything different, the transformation doesn't run but it's correct.&lt;/P&gt;&lt;P&gt;If you want to mask every number in the third field (also less than 16 digits), you have to use a different approach as described at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.0/Data/Anonymizedata:" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.0/Data/Anonymizedata:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in props.conf use this command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[&amp;lt;your_sourcetype&amp;gt;]
TRANSFORMS-anonymize = anonymizer&lt;/LI-CODE&gt;&lt;P&gt;in transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[anonymizer]
REGEX = ^(\w+,\w+,)\d+
FORMAT = $1xxxxxxxxxxxxxxxx
DEST_KEY = _raw&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Sun, 07 Aug 2022 14:54:56 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-08-07T14:54:56Z</dc:date>
    <item>
      <title>How to anonymize credit card numbers using props.conf and transforms .conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608596#M105576</link>
      <description>&lt;P&gt;hi im trying to replace credit card number (16 digits) in a csv file with xxxx&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;when i input below text, full event will be masked i will only see xxxx in the search&lt;/P&gt;
&lt;P&gt;test1,test2, 0123456789123456&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;when i input any credit card number which is less than 16 digits , i can see full event in the search&lt;/P&gt;
&lt;P&gt;test3,test4,1234&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please find the following&amp;nbsp; configuration files&lt;/P&gt;
&lt;P&gt;props.conf&lt;/P&gt;
&lt;PRE&gt;[ccdata]&lt;BR /&gt;TRANSFORMS-anonymize = masking&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;transforms.conf&lt;/P&gt;
&lt;PRE&gt;[masking]&lt;BR /&gt;REGEX = \d{16}&lt;BR /&gt;FORMAT = xxxx&lt;BR /&gt;DEST_KEY = _raw&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 13:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608596#M105576</guid>
      <dc:creator>gotenzw</dc:creator>
      <dc:date>2022-08-09T13:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: anonymizing credit card numbers using props.conf and transforms .conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608598#M105577</link>
      <description>&lt;P&gt;What is the problem you are trying to solve?&amp;nbsp; The way I read this description everything appears to be working as desired.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 13:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608598#M105577</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-08-07T13:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: anonymizing credit card numbers using props.conf and transforms .conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608599#M105578</link>
      <description>&lt;P&gt;i need to see other fields like test1, test2, what is required is to mask only credit card number which is the 16 digit, but the issue here i can't see full event after masking as stated before only xxxx i can see in the search&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 13:38:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608599#M105578</guid>
      <dc:creator>gotenzw</dc:creator>
      <dc:date>2022-08-07T13:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: anonymizing credit card numbers using props.conf and transforms .conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608603#M105579</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248349"&gt;@gotenzw&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;, the behavior you described is correct: you transform a credit card number (16 digits) if you have a number with 16 digits in that field, if you have anything different, the transformation doesn't run but it's correct.&lt;/P&gt;&lt;P&gt;If you want to mask every number in the third field (also less than 16 digits), you have to use a different approach as described at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.0/Data/Anonymizedata:" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.0/Data/Anonymizedata:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in props.conf use this command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[&amp;lt;your_sourcetype&amp;gt;]
TRANSFORMS-anonymize = anonymizer&lt;/LI-CODE&gt;&lt;P&gt;in transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[anonymizer]
REGEX = ^(\w+,\w+,)\d+
FORMAT = $1xxxxxxxxxxxxxxxx
DEST_KEY = _raw&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 14:54:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608603#M105579</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-08-07T14:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: anonymizing credit card numbers using props.conf and transforms .conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608609#M105580</link>
      <description>&lt;P&gt;i need to use same approach which is 16 digits but i want to see other fields.&lt;/P&gt;&lt;P&gt;im expecting&amp;nbsp; the event like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;event1,event2,xxxx&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 15:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608609#M105580</guid>
      <dc:creator>gotenzw</dc:creator>
      <dc:date>2022-08-07T15:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: anonymizing credit card numbers using props.conf and transforms .conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608610#M105581</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248349"&gt;@gotenzw&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;with my approach, you should see the other fields and anonymize only the Credit Card Number, otherwise, as described in the above url (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.0/Data/Anonymizedata" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.0/Data/Anonymizedata&lt;/A&gt;), you can also try SEDCMD command in props.conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[&amp;lt;your_sourcetype&amp;gt;]
SEDCMD-Anonymize = s/^\w+,\w+,\d+/^\w+,\w+,xxxxxxxxxxxxxxxx/g&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 15:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608610#M105581</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-08-07T15:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: anonymizing credit card numbers using props.conf and transforms .conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608611#M105582</link>
      <description>&lt;P&gt;i used the SEDCMD and it worked fine but i need to do it using transforms.conf&lt;/P&gt;&lt;P&gt;below is the props.conf which i used.&lt;/P&gt;&lt;PRE&gt;[ccdata]&lt;BR /&gt;SEDCMD-ccdatamask = s/\d{16}/xxxx/g&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible to do the same using trasnforms.conf ?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 15:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608611#M105582</guid>
      <dc:creator>gotenzw</dc:creator>
      <dc:date>2022-08-07T15:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: anonymizing credit card numbers using props.conf and transforms .conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608627#M105586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248349"&gt;@gotenzw&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes, it's possible.&lt;/P&gt;&lt;P&gt;Your transforms.conf is correct, and the configuration you shared is correct but only for 16 digits numbers, if you have less numbers it doesn't work.&lt;/P&gt;&lt;P&gt;if you don't have other numerical fields you could try to use a little different regex to recognize your CC number:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[masking]
REGEX = \d+
FORMAT = xxxx
DEST_KEY = _raw&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 05:31:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-anonymize-credit-card-numbers-using-props-conf-and/m-p/608627#M105586</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-08-08T05:31:31Z</dc:date>
    </item>
  </channel>
</rss>

