<?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 in Splunk Search in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238540#M46330</link>
    <description>&lt;P&gt;This Splunk doc should get you started.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.8/Data/Anonymizedatausingconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.8/Data/Anonymizedatausingconfigurationfiles&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2016 18:05:06 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-03-09T18:05:06Z</dc:date>
    <item>
      <title>Anonymize Data in Splunk Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238539#M46329</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;
I am running a local instance of splunk for testing purposes. The aim is toAnonymize certain parts of the data that can be searched.&lt;BR /&gt;
In my files there were no props.conf or transforms.conf so I created these two files in this folder&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;'C:\Program Files\Splunk\etc\system\local'&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The data I am looking to anonymize is simple&lt;BR /&gt;
&lt;EM&gt;testfield: 123&lt;/EM&gt; &lt;BR /&gt;
- Either by removing it completely or removing the unit. &lt;/P&gt;

&lt;P&gt;If anyone could help with what exactly should go in the transforms.conf and the props.conf files that would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 11:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238539#M46329</guid>
      <dc:creator>jmaguire1992</dc:creator>
      <dc:date>2016-03-09T11:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize Data in Splunk Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238540#M46330</link>
      <description>&lt;P&gt;This Splunk doc should get you started.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.8/Data/Anonymizedatausingconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.8/Data/Anonymizedatausingconfigurationfiles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 18:05:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238540#M46330</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-09T18:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize Data in Splunk Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238541#M46331</link>
      <description>&lt;P&gt;Assuming you want to anonymize the '123' in your test data, you could use the following configuration:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [your_sourcetype]
 TRANSFORMS-anonymize = testdata_anonymizer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [testdata_anonymizer]
 REGEX = (?m)^testfield:\s+(.*)$
 FORMAT = testfield:\sxxxx
 DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will strip all off your event after the 'testfield: ' string, and replace it with 'xxxx'&lt;BR /&gt;
If you want to keep some of the data, you have to modify the regex accordingly.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 18:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238541#M46331</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2016-03-09T18:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize Data in Splunk Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238542#M46332</link>
      <description>&lt;P&gt;Thank you very much! It worked! It removed all of the other data and just left &lt;/P&gt;

&lt;P&gt;testfield:\sxxxx&lt;/P&gt;

&lt;P&gt;So I will try figure out some way of modifying the regex to just Anoymize the testfield, but thank you so much for your helpful comment &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 09:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238542#M46332</guid>
      <dc:creator>jmaguire1992</dc:creator>
      <dc:date>2016-03-10T09:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize Data in Splunk Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238543#M46333</link>
      <description>&lt;P&gt;Hi Sir,&lt;BR /&gt;
Are you able to modify the regex to  replace only 123 data . not all other fields in the even. IF yes Could you please provide the regex. Thanks in advance for your help . &lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 15:40:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238543#M46333</guid>
      <dc:creator>jaiminsol</dc:creator>
      <dc:date>2017-09-12T15:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Anonymize Data in Splunk Search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238544#M46334</link>
      <description>&lt;P&gt;You can modify the regex to capture only the next three digits after 'testfield:' this way: &lt;BR /&gt;
     REGEX = (?m)testfield:\s+(\d{3})&lt;BR /&gt;
     FORMAT = testfield:\sxxxx&lt;/P&gt;

&lt;P&gt;This will capture any string 'testfield:' followed by a space and three digits.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 19:55:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238544#M46334</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2017-09-12T19:55:12Z</dc:date>
    </item>
  </channel>
</rss>

