<?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: Anonymize data is not working, in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347364#M93622</link>
    <description>&lt;P&gt;Run the following commands on your indexer to check that Splunk finds your configuration:&lt;BR /&gt;
/opt/splunk/bin/splunk btool props list&lt;BR /&gt;
/opt/splunk/bin/splunk btool transforms list&lt;BR /&gt;
Is your configuration listed here?&lt;/P&gt;

&lt;P&gt;Which sourcetype does your data have? If the props.conf stanza is [xyz:abc:auto] as you posted then the sourcetype of your data must be "xyz:abc:auto".&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2017 09:53:11 GMT</pubDate>
    <dc:creator>Yunagi</dc:creator>
    <dc:date>2017-12-19T09:53:11Z</dc:date>
    <item>
      <title>Anonymize data is not working,</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347355#M93613</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;

&lt;P&gt;I made my Anonymize data based on this &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;BR /&gt;
and I checked it million times.&lt;BR /&gt;
I have distributed installation and I have done this on "indexer"&lt;/P&gt;

&lt;P&gt;[xyz:abc:auto]&lt;BR /&gt;
TRANSFORMS-anonymize = password-anonymizer&lt;/P&gt;

&lt;P&gt;[password-anonymizer]&lt;BR /&gt;
REGEX = (?m)^(.&lt;EM&gt;)Password=\w+%(\w{0}[^&amp;amp;].&lt;/EM&gt;)$&lt;BR /&gt;
FORMAT = $1Password=#########$2&lt;BR /&gt;
DEST_KEY = _raw&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 08:11:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347355#M93613</guid>
      <dc:creator>ahmadjabr</dc:creator>
      <dc:date>2017-12-18T08:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize data is not working,</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347356#M93614</link>
      <description>&lt;P&gt;The link you provided says: "The forwarded data must arrive at the indexer already parsed." Do you perhaps have a heavy forwarder in place?&lt;/P&gt;

&lt;P&gt;If you have a heavy forwarder in place, move your anonymization configuration from the indexers to the heavy forwarders.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 08:35:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347356#M93614</guid>
      <dc:creator>Yunagi</dc:creator>
      <dc:date>2017-12-18T08:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize data is not working,</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347357#M93615</link>
      <description>&lt;P&gt;Hi ahmadjabr,&lt;BR /&gt;
can you share an example of log to anonymize, your regex isnot so clear?&lt;BR /&gt;
Bye.&lt;BR /&gt;
giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 09:10:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347357#M93615</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-12-18T09:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize data is not working,</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347358#M93616</link>
      <description>&lt;P&gt;I don't have heavy forwarder I have universal forwarder, will it work?&lt;BR /&gt;
and universal forwarder on the windows machine&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 09:49:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347358#M93616</guid>
      <dc:creator>ahmadjabr</dc:creator>
      <dc:date>2017-12-18T09:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize data is not working,</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347359#M93617</link>
      <description>&lt;P&gt;2017-12-18 07:42:19 10.0.1.1 GET /send.asmx/Send Username=CENTER&amp;amp;Password=asdqweasd%23&amp;amp;Sender=xyyzetc etcetcetectecetetctec&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 09:54:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347359#M93617</guid>
      <dc:creator>ahmadjabr</dc:creator>
      <dc:date>2017-12-18T09:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize data is not working,</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347360#M93618</link>
      <description>&lt;P&gt;Universal forwarders do not parse the data. So keep this configuration on the indexers.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 10:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347360#M93618</guid>
      <dc:creator>Yunagi</dc:creator>
      <dc:date>2017-12-18T10:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize data is not working,</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347361#M93619</link>
      <description>&lt;P&gt;Try the following changes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[password-anonymizer]
REGEX = (?m)^(.*)Password=[^%]*(.*)$
FORMAT = $1Password=#########$2
DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please note that this configuration belongs into transforms.conf. The other two lines you posted belong into props.conf.&lt;/P&gt;

&lt;P&gt;You will need to restart your indexers after making such changes.&lt;/P&gt;

&lt;P&gt;Also make sure that your data has the correct sourcetype assigned. (In your case, that would be "xyz:abc:auto".)&lt;/P&gt;

&lt;P&gt;On a more general note, I often use this website for testing purposes when dealing with regex:&lt;BR /&gt;
&lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 10:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347361#M93619</guid>
      <dc:creator>Yunagi</dc:creator>
      <dc:date>2017-12-18T10:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize data is not working,</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347362#M93620</link>
      <description>&lt;P&gt;Hi ahmadjabr,&lt;BR /&gt;
try a different regex escaping = and %&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (?m)^.*Password\=\w+\%.*$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 10:42:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347362#M93620</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-12-18T10:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize data is not working,</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347363#M93621</link>
      <description>&lt;P&gt;I found out that the indexer doesn't even do anything with the log, it's like it doesn't read the stanza I made.&lt;BR /&gt;
and I moved it to the top but its the same nothing happened&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347363#M93621</guid>
      <dc:creator>ahmadjabr</dc:creator>
      <dc:date>2017-12-19T09:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize data is not working,</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347364#M93622</link>
      <description>&lt;P&gt;Run the following commands on your indexer to check that Splunk finds your configuration:&lt;BR /&gt;
/opt/splunk/bin/splunk btool props list&lt;BR /&gt;
/opt/splunk/bin/splunk btool transforms list&lt;BR /&gt;
Is your configuration listed here?&lt;/P&gt;

&lt;P&gt;Which sourcetype does your data have? If the props.conf stanza is [xyz:abc:auto] as you posted then the sourcetype of your data must be "xyz:abc:auto".&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:53:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-data-is-not-working/m-p/347364#M93622</guid>
      <dc:creator>Yunagi</dc:creator>
      <dc:date>2017-12-19T09:53:11Z</dc:date>
    </item>
  </channel>
</rss>

