<?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 Anonymize data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data/m-p/331925#M61485</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;How would I anonymize the following example:&lt;/P&gt;

&lt;P&gt;BankName=South!@Indian!@Bank&lt;/P&gt;

&lt;P&gt;I want everything to the right of the equal sign to be removed/masked/covered&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2017 18:07:19 GMT</pubDate>
    <dc:creator>jdomin30</dc:creator>
    <dc:date>2017-10-24T18:07:19Z</dc:date>
    <item>
      <title>Anonymize data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data/m-p/331925#M61485</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;How would I anonymize the following example:&lt;/P&gt;

&lt;P&gt;BankName=South!@Indian!@Bank&lt;/P&gt;

&lt;P&gt;I want everything to the right of the equal sign to be removed/masked/covered&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 18:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data/m-p/331925#M61485</guid>
      <dc:creator>jdomin30</dc:creator>
      <dc:date>2017-10-24T18:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data/m-p/331926#M61486</link>
      <description>&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/Data/Anonymizedata"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.0/Data/Anonymizedata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Pseudo example based on the docs to get you started. Would need a better data sample of full log events to give you a more accurate regex.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my-spec]
TRANSFORMS-anonymize = my-anonymizer
&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;[my-anonymizer]
REGEX = (?m)^(.*)BankName=\w+!@\w+!@\w+(.*)$
FORMAT = $1BankName=########$2
DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Oct 2017 19:22:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data/m-p/331926#M61486</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2017-10-24T19:22:26Z</dc:date>
    </item>
  </channel>
</rss>

