<?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 multiple occurrences on the same log event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270868#M52004</link>
    <description>&lt;P&gt;Thanks, I will try again with REPEAT_MATCH = true but works fine with SEDCMD.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2016 14:39:35 GMT</pubDate>
    <dc:creator>SirHill17</dc:creator>
    <dc:date>2016-03-31T14:39:35Z</dc:date>
    <item>
      <title>Anonymize multiple occurrences on the same log event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270862#M51998</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am able to anonymize data in Splunk using props.conf and transforms.conf but not able to anonymize multiple occurrences on the same log event. I am trying to anonymize IP Address, please find below my setup and the output:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
TRANSFORMS-anonymizeip = ip_anonymizer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ip_anonymizer]
REGEX = (.* )\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(.*)
FORMAT = $1XXX.XXX.XXX.XXX$2
DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Log event example (before transform):&lt;BR /&gt;
&lt;EM&gt;2016-03-31 09:03:52 testserv.net ProxySG: E0000 Access Log Connected to 192.168.1.101 and server 192.168.4.12:21.(0) NORMAL_EVENT&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Log event example (after transform):&lt;BR /&gt;
&lt;EM&gt;2016-03-31 09:03:52 testserv.net ProxySG: E0000 Access Log Connected to 192.168.1.101 and server XXX.XXX.XXX.XXX:21.(0) NORMAL_EVENT&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Only the second IP Address is masked. &lt;/P&gt;

&lt;P&gt;Does anyone know what must be changed in the config ?&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;

&lt;P&gt;SirHill&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 07:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270862#M51998</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2016-03-31T07:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize multiple occurrences on the same log event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270863#M51999</link>
      <description>&lt;P&gt;Have you tried the &lt;CODE&gt;REPEAT_MATCH = true&lt;/CODE&gt; attribute in your transforms.conf stanza?&lt;/P&gt;

&lt;P&gt;Cheers, Greg.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 09:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270863#M51999</guid>
      <dc:creator>gwiley_splunk</dc:creator>
      <dc:date>2016-03-31T09:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize multiple occurrences on the same log event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270864#M52000</link>
      <description>&lt;P&gt;Just tried and it doesn't work, it did not collect some log events. But reading the transforms.conf documentation, it seems that the &lt;STRONG&gt;REPEAT_MATCH&lt;/STRONG&gt; feature is only for field extraction:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;NOTE: This attribute is only valid for index-time field extractions.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Do I understand well what the doc means?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 11:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270864#M52000</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2016-03-31T11:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize multiple occurrences on the same log event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270865#M52001</link>
      <description>&lt;P&gt;You can try SEDCMD on the props.conf as well. To mask all IP address in the event try something like this&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [mysourcetype]
 SEDCMD-anonymizeip = s/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/XXX.XXX.XXX.XXX/g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Mar 2016 14:10:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270865#M52001</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-31T14:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize multiple occurrences on the same log event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270866#M52002</link>
      <description>&lt;P&gt;The other solution ( &lt;CODE&gt;REPEAT_MATCH = true&lt;/CODE&gt; ) should work but only after you restart all of your indexers AND it will only apply to NEWLY INDEXED events.&lt;/P&gt;

&lt;P&gt;Here is another way to do it (the same "but onlys" apply) in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
SEDCMD-anonymize_all_IPv4s = s/(\d{1,3}\.){3}\d{1,3}/IPv4_anonymized/g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Mar 2016 14:35:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270866#M52002</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-03-31T14:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize multiple occurrences on the same log event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270867#M52003</link>
      <description>&lt;P&gt;Perfect, it works fine!&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 14:38:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270867#M52003</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2016-03-31T14:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize multiple occurrences on the same log event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270868#M52004</link>
      <description>&lt;P&gt;Thanks, I will try again with REPEAT_MATCH = true but works fine with SEDCMD.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 14:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-multiple-occurrences-on-the-same-log-event/m-p/270868#M52004</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2016-03-31T14:39:35Z</dc:date>
    </item>
  </channel>
</rss>

