<?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 Data masking in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303626#M91332</link>
    <description>&lt;P&gt;HI ,&lt;BR /&gt;
i want to masking the cookie value in the the log file i just write the regx but its not displaying the data before the masking vale.&lt;/P&gt;

&lt;P&gt;2017-07-11 11:51:46,740 tid:hhReD803VBtTqw2uFsQVhPI35r0 DEBUG [org.sourceid.servlet.HttpServletRespProxy] flush cookies: adding Cookie{PF=hashedValue&lt;CODE&gt;:hhReD803VBtTqw2uFsQVhPI35r0&lt;/CODE&gt;; path=/; maxAge=-1; domain=null}&lt;/P&gt;

&lt;P&gt;2017-07-11 11:51:46,740 tid:hhReD803VBtTqw2uFsQVhPI35r0 DEBUG [org.sourceid.servlet.HttpServletRespProxy] flush cookies: adding Cookie{PF_JWT=&lt;CODE&gt;eyJhbGciOiJSUzI1NiIsImtpZCI6IjIifQ.eyJzY29wZSI6WyJlZGl0Il0sImNsaWVudF9pZCI6IkNsaWVudFBpbmciLCJHVUlEIjoiMTNjNTY3MTAtYzg1Yy00ZjY3LWJmZjYtM2EyYzM0Njk2MjFjIiwiYWNjb3VudElEIjoiQU41OTM3OTgtNTMzNi0wNTAyLTM3MTEtSkkwMTIwMTZLSTk4Iiwibm9kZUlkeCI6IjEiLCJleHAiOjE0OTk3OTU1MDZ9.XaL4OaNWXT1p_ADnPYLFHN1Jl_fLlHEmbG9Q25YaMF8iRJMPYJuWF-2dxZ9oMJUyZiPbEdQzkdRcGvWvE0xl5faM-LKB2g-r_6bTt1ArLaLTt3uzXZ0GX5V6OlQyvHlUZPFlvKQpkC_3Sb_Gg9p4C4vee-oPHNpMm721ba_cUM5MC7VHcmepQQi3zP0zYh2U3kjTa8D88pAW1mmJF1INvhZ_T3tJMMqEG5YnxUfE75ETJY9brS7KF3VAC6GyEhpbw2QSJBvkj6FmnyGM7O7xn84LGXUgYgZiHMuNXQb0so6-Zpy9Ax88bDi2QMo59mj6nGM4zuyq6IqrBGJonDJ_5g&lt;/CODE&gt;; path=/; maxAge=-1; domain=}&lt;/P&gt;

&lt;P&gt;code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex mode=sed  "s/[^{]+{(\w+)=([^};]*)/=1XXXXXX/g" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 14:50:14 GMT</pubDate>
    <dc:creator>svemurilv</dc:creator>
    <dc:date>2020-09-29T14:50:14Z</dc:date>
    <item>
      <title>Data masking</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303626#M91332</link>
      <description>&lt;P&gt;HI ,&lt;BR /&gt;
i want to masking the cookie value in the the log file i just write the regx but its not displaying the data before the masking vale.&lt;/P&gt;

&lt;P&gt;2017-07-11 11:51:46,740 tid:hhReD803VBtTqw2uFsQVhPI35r0 DEBUG [org.sourceid.servlet.HttpServletRespProxy] flush cookies: adding Cookie{PF=hashedValue&lt;CODE&gt;:hhReD803VBtTqw2uFsQVhPI35r0&lt;/CODE&gt;; path=/; maxAge=-1; domain=null}&lt;/P&gt;

&lt;P&gt;2017-07-11 11:51:46,740 tid:hhReD803VBtTqw2uFsQVhPI35r0 DEBUG [org.sourceid.servlet.HttpServletRespProxy] flush cookies: adding Cookie{PF_JWT=&lt;CODE&gt;eyJhbGciOiJSUzI1NiIsImtpZCI6IjIifQ.eyJzY29wZSI6WyJlZGl0Il0sImNsaWVudF9pZCI6IkNsaWVudFBpbmciLCJHVUlEIjoiMTNjNTY3MTAtYzg1Yy00ZjY3LWJmZjYtM2EyYzM0Njk2MjFjIiwiYWNjb3VudElEIjoiQU41OTM3OTgtNTMzNi0wNTAyLTM3MTEtSkkwMTIwMTZLSTk4Iiwibm9kZUlkeCI6IjEiLCJleHAiOjE0OTk3OTU1MDZ9.XaL4OaNWXT1p_ADnPYLFHN1Jl_fLlHEmbG9Q25YaMF8iRJMPYJuWF-2dxZ9oMJUyZiPbEdQzkdRcGvWvE0xl5faM-LKB2g-r_6bTt1ArLaLTt3uzXZ0GX5V6OlQyvHlUZPFlvKQpkC_3Sb_Gg9p4C4vee-oPHNpMm721ba_cUM5MC7VHcmepQQi3zP0zYh2U3kjTa8D88pAW1mmJF1INvhZ_T3tJMMqEG5YnxUfE75ETJY9brS7KF3VAC6GyEhpbw2QSJBvkj6FmnyGM7O7xn84LGXUgYgZiHMuNXQb0so6-Zpy9Ax88bDi2QMo59mj6nGM4zuyq6IqrBGJonDJ_5g&lt;/CODE&gt;; path=/; maxAge=-1; domain=}&lt;/P&gt;

&lt;P&gt;code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex mode=sed  "s/[^{]+{(\w+)=([^};]*)/=1XXXXXX/g" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:50:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303626#M91332</guid>
      <dc:creator>svemurilv</dc:creator>
      <dc:date>2020-09-29T14:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Data masking</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303627#M91333</link>
      <description>&lt;P&gt;I'm not sure the question your asking.. You want to mask the data but the data is not present in the logs? &lt;/P&gt;

&lt;P&gt;Your &lt;CODE&gt;sed&lt;/CODE&gt; method is only masking data at search time. If another user runs a search then the cookie data will be available. If you want to mask the data at index time (i.e. the data will be masked if anyone searches for it), you should do the following&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [sourcetype]
 TRANSFORMS-1card = cookie_anon
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;transforms.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[cookie_anon]
 REGEX = [^{]+{(\w+)=([^};]*)
 DEST_KEY = _raw
 FORMAT = 1XXXXXX
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Make sure to restart splunkd after making these changes &lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 17:49:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303627#M91333</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-07-11T17:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data masking</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303628#M91334</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;| makeresults | eval test="2017-07-11 11:51:46,740 tid:hhReD803VBtTqw2uFsQVhPI35r0 DEBUG [org.sourceid.servlet.HttpServletRespProxy] flush cookies: adding Cookie{PF=hashedValue&lt;CODE&gt;:hhReD803VBtTqw2uFsQVhPI35r0&lt;/CODE&gt;; path=/; maxAge=-1; domain=null}" | table test | rex field=test mode=sed "s/cookies:\s(\S+.*)/cookies: =1XXXXXX/g"&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 18:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303628#M91334</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-07-11T18:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data masking</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303629#M91335</link>
      <description>&lt;P&gt;| makeresults | eval test="2017-07-11 11:51:46,740 tid:hhReD803VBtTqw2uFsQVhPI35r0 DEBUG [org.sourceid.servlet.HttpServletRespProxy] flush cookies: adding Cookie{PF=hashedValue&lt;CODE&gt;:hhReD803VBtTqw2uFsQVhPI35r0&lt;/CODE&gt;; path=/; maxAge=-1; domain=null}" | table test | rex field=test mode=sed "s/cookies:\s(\S+.*)/cookies: =1XXXXXX/g"&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 18:02:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303629#M91335</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-07-11T18:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data masking</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303630#M91336</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
  here i just want to mask only the Cookie session values oly not other string , even i need to tesxt "adding Cookie{PF_JWT=" and the end of the line laso "path=/; maxAge=-1; domain=}" &lt;/P&gt;

&lt;P&gt;2017-07-12 09:47:57,316 tid:mq2JlWyVI8JiL5AYxJRn28ZFLNQ DEBUG [org.sourceid.servlet.HttpServletRespProxy] flush cookies: adding Cookie{PF_JWT=&lt;STRONG&gt;&lt;CODE&gt;eyJhbGciOiJSUzI1NiIsImtpZCI6IjIifQ.eyJzY29wZSI6WyJlZGl0Il0sImNsaWVudF9pZCI6IkNsaWVudFBpbmciLCJHVUlEIjoiMTBiMDRjNGYtZWUyOC00M2JjLWE3YWItNjc1YjUxZWRlZWFhIiwiYWNjb3VudElEIjoiS1o4MzU4ODktODkzMi0xNTA0LTMwMTEtRkk1MTIwMTRGTjg5Iiwibm9kZUlkeCI6IjEiLCJleHAiOjE0OTk4NzQ0Nzd9.NmeJEY9BLpXyBZhRblUETWeh_7pAczHOTHKJaS1r3DMy0UL0HNe-EVMm40t1Hh27iSoWup6WqY_0XXapLQkglFUpUaLW_gygoieK_lB09iKiMjCUZDVxoIoFHuqGRMErArxNvyR2PPETrX4p7a_7Q0U5CYHMIYbiLSzBIuhpabBsgaW1u3lJlA-Ry08oX_BdQ32XRRRznqi1hImjZfCQ5Ok84t4ygwatq5lT24zQoEjHCVh37Mr2G00WfL_0i6T9sNsROyk5ZoprScE4VLIa8LPlGeTspUAoQ1-LFwiM4BNX7Q58mW_a0B3bhWkzJUPeJUhd8bvzLLDqzxfu9nsZRA&lt;/CODE&gt;&lt;/STRONG&gt;; path=/; maxAge=-1; domain=}&lt;/P&gt;

&lt;P&gt;only bold code should mask &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:50:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303630#M91336</guid>
      <dc:creator>svemurilv</dc:creator>
      <dc:date>2020-09-29T14:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data masking</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303631#M91337</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;

&lt;P&gt;| makeresults | eval test="2017-07-12 09:47:57,316 tid:mq2JlWyVI8JiL5AYxJRn28ZFLNQ DEBUG [org.sourceid.servlet.HttpServletRespProxy] flush cookies: adding Cookie{PF_JWT=&lt;CODE&gt;eyJhbGciOiJSUzI1NiIsImtpZCI6IjIifQ.eyJzY29wZSI6WyJlZGl0Il0sImNsaWVudF9pZCI6IkNsaWVudFBpbmciLCJHVUlEIjoiMTBiMDRjNGYtZWUyOC00M2JjLWE3YWItNjc1YjUxZWRlZWFhIiwiYWNjb3VudElEIjoiS1o4MzU4ODktODkzMi0xNTA0LTMwMTEtRkk1MTIwMTRGTjg5Iiwibm9kZUlkeCI6IjEiLCJleHAiOjE0OTk4NzQ0Nzd9.NmeJEY9BLpXyBZhRblUETWeh_7pAczHOTHKJaS1r3DMy0UL0HNe-EVMm40t1Hh27iSoWup6WqY_0XXapLQkglFUpUaLW_gygoieK_lB09iKiMjCUZDVxoIoFHuqGRMErArxNvyR2PPETrX4p7a_7Q0U5CYHMIYbiLSzBIuhpabBsgaW1u3lJlA-Ry08oX_BdQ32XRRRznqi1hImjZfCQ5Ok84t4ygwatq5lT24zQoEjHCVh37Mr2G00WfL_0i6T9sNsROyk5ZoprScE4VLIa8LPlGeTspUAoQ1-LFwiM4BNX7Q58mW_a0B3bhWkzJUPeJUhd8bvzLLDqzxfu9nsZRA&lt;/CODE&gt;; path=/; maxAge=-1; domain=}"  |rex field=test mode=sed "s/Cookie{PF_JWT=`(\S+)/Cookie{PF_JWT=&lt;CODE&gt;xxxxxx&lt;/CODE&gt;;/g"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:50:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-masking/m-p/303631#M91337</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T14:50:56Z</dc:date>
    </item>
  </channel>
</rss>

