<?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: How can i mask this data at index time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322366#M161442</link>
    <description>&lt;P&gt;Thanks @ koshyk for the insight. But I'm still having issues getting the sample data masked at index time. &lt;/P&gt;

&lt;P&gt;Sample data to be masked  :  ns2:arg name="password" value="utTSsgTST9B"/&lt;BR /&gt;
props.conf&lt;BR /&gt;
[password_log]&lt;BR /&gt;
TRANSFORMS-anonymize = password-anonymizer&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[password-anonymizer]&lt;BR /&gt;
REGEX = (?m)^(.)"password"=\s\w+('[a-z0-9#])["/].)$&lt;BR /&gt;
FORMAT = $1password=########$2&lt;BR /&gt;
DEST_KEY = _raw&lt;/P&gt;

&lt;P&gt;What am i doing wrong?&lt;BR /&gt;
Thanks&lt;BR /&gt;
-u&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2017 06:20:53 GMT</pubDate>
    <dc:creator>u2s1e0n2</dc:creator>
    <dc:date>2017-04-11T06:20:53Z</dc:date>
    <item>
      <title>How can i mask this data at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322364#M161440</link>
      <description>&lt;P&gt;I will like to mask this data so that the password  value is "XXXXXXXX". I have tried SEDCMD, scrub and transforms but I just couldn't get it done. Thanks for your help&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 03:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322364#M161440</guid>
      <dc:creator>u2s1e0n2</dc:creator>
      <dc:date>2017-04-10T03:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can i mask this data at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322365#M161441</link>
      <description>&lt;P&gt;Index time means you can never recover the value again. Splunk's official &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.5.1612/Data/Anonymizedata" target="_blank"&gt;documentation to anonymize data&lt;/A&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Create an app (eg   my_mask_app)&lt;/LI&gt;
&lt;LI&gt;within "local" directory, create inputs.conf and assign a good sourcetype for your dataset (eg  &lt;CODE&gt;probable_password_sourcetype&lt;/CODE&gt;)&lt;/LI&gt;
&lt;LI&gt;within "local" directory, create props.conf and put the value for the above sourcetype&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[probable_password_sourcetype]
TRANSFORMS-anonymize = password-anonymizer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;UL&gt;
&lt;LI&gt;Now create transforms.conf in "local"  and put the regex logic. Below is a sample only&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[password-anonymizer]
REGEX = (?m)^(.*)password=\w+(\w{4}[&amp;amp;"].*)$
FORMAT = $1password=########$2
DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:35:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322365#M161441</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2020-09-29T13:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can i mask this data at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322366#M161442</link>
      <description>&lt;P&gt;Thanks @ koshyk for the insight. But I'm still having issues getting the sample data masked at index time. &lt;/P&gt;

&lt;P&gt;Sample data to be masked  :  ns2:arg name="password" value="utTSsgTST9B"/&lt;BR /&gt;
props.conf&lt;BR /&gt;
[password_log]&lt;BR /&gt;
TRANSFORMS-anonymize = password-anonymizer&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[password-anonymizer]&lt;BR /&gt;
REGEX = (?m)^(.)"password"=\s\w+('[a-z0-9#])["/].)$&lt;BR /&gt;
FORMAT = $1password=########$2&lt;BR /&gt;
DEST_KEY = _raw&lt;/P&gt;

&lt;P&gt;What am i doing wrong?&lt;BR /&gt;
Thanks&lt;BR /&gt;
-u&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 06:20:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322366#M161442</guid>
      <dc:creator>u2s1e0n2</dc:creator>
      <dc:date>2017-04-11T06:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can i mask this data at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322367#M161443</link>
      <description>&lt;P&gt;Good to see a sample data. Your regex seems wrong&lt;/P&gt;

&lt;P&gt;Have a try below. &lt;/P&gt;

&lt;P&gt;[password-anonymizer]&lt;BR /&gt;
REGEX =(?m)^(.+)\svalue=\"([\w\W]+)\"(.*)$&lt;BR /&gt;
FORMAT = $1 value=########$3&lt;BR /&gt;
DEST_KEY = _raw&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 07:55:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322367#M161443</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2017-04-11T07:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can i mask this data at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322368#M161444</link>
      <description>&lt;P&gt;Thanks. It worked.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 14:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322368#M161444</guid>
      <dc:creator>u2s1e0n2</dc:creator>
      <dc:date>2017-04-11T14:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can i mask this data at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322369#M161445</link>
      <description>&lt;P&gt;Please mark the answer as accepted if this works for you &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 14:39:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-mask-this-data-at-index-time/m-p/322369#M161445</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2017-04-11T14:39:55Z</dc:date>
    </item>
  </channel>
</rss>

