<?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 search time data masking in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-time-data-masking/m-p/187027#M53883</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I am trying to mask indexed data using following props.conf comfig for linux_secure.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[linux_secure]
EXTRACT-ip = (?&amp;amp;lt;ip&amp;amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
EVAL-ip = md5(ip)
EVAL-_raw = replace(_raw,"(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})",ip)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I try to mask IP address and replace the IP address with hashed value(mp5), but replacement portion does not work with the config above. Still ip address in raw event is not hashed.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/350i963E0F291F03EABA/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The desired _raw and ip field look like this:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/351i9AF9AA54F54DEFD1/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Does anyone know how to configure props.conf to replace ip raw data into hashed ip data?&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2015 05:53:06 GMT</pubDate>
    <dc:creator>melonman</dc:creator>
    <dc:date>2015-05-12T05:53:06Z</dc:date>
    <item>
      <title>search time data masking</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-time-data-masking/m-p/187027#M53883</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I am trying to mask indexed data using following props.conf comfig for linux_secure.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[linux_secure]
EXTRACT-ip = (?&amp;amp;lt;ip&amp;amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
EVAL-ip = md5(ip)
EVAL-_raw = replace(_raw,"(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})",ip)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I try to mask IP address and replace the IP address with hashed value(mp5), but replacement portion does not work with the config above. Still ip address in raw event is not hashed.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/350i963E0F291F03EABA/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The desired _raw and ip field look like this:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/351i9AF9AA54F54DEFD1/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Does anyone know how to configure props.conf to replace ip raw data into hashed ip data?&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 05:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-time-data-masking/m-p/187027#M53883</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2015-05-12T05:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: search time data masking</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-time-data-masking/m-p/187028#M53884</link>
      <description>&lt;P&gt;You cant overwrite _raw at search time with EXTRACT or REPORT. Only through spl in the eval method you're using.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://answers.splunk.com/answers/3025/search-time-mask.html"&gt;http://answers.splunk.com/answers/3025/search-time-mask.html&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;&lt;A href="http://answers.splunk.com/answers/26137/how-can-i-mask-data-both-at-index-time-and-search-time.html"&gt;http://answers.splunk.com/answers/26137/how-can-i-mask-data-both-at-index-time-and-search-time.html&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Other options would be either a macro, or mask this at index time with SEDCMD.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 06:22:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-time-data-masking/m-p/187028#M53884</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-05-12T06:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: search time data masking</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-time-data-masking/m-p/187029#M53885</link>
      <description>&lt;P&gt;esix, thank you for your commend.&lt;/P&gt;

&lt;P&gt;After several trials and errors, I ended up with the config below. &lt;BR /&gt;
This works for me.&lt;/P&gt;

&lt;P&gt;[linux_secure]&lt;BR /&gt;
EXTRACT-ip1 = (?&amp;lt;ip&amp;gt;\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})&lt;BR /&gt;
EVAL-_raw = replace(_raw,"(\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})",md5(ip))&lt;BR /&gt;
EVAL-ip = md5(ip)&lt;/P&gt;

&lt;P&gt;I am looking for the way to hide ip by using _ip as a field name. &lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:53:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-time-data-masking/m-p/187029#M53885</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2020-09-28T19:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: search time data masking</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-time-data-masking/m-p/187030#M53886</link>
      <description>&lt;P&gt;This worked great for us as well, thank you for sharing.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 20:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-time-data-masking/m-p/187030#M53886</guid>
      <dc:creator>Kieffer87</dc:creator>
      <dc:date>2018-10-25T20:08:30Z</dc:date>
    </item>
  </channel>
</rss>

