<?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 to prevent sensitive key-value pair in IIS cookie data from appearing in Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162412#M32965</link>
    <description>&lt;P&gt;I had to anonymize a field in my log events.. and i did this and it worked&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;[anonymize_IP_Address]&lt;BR /&gt;
REGEX = &lt;REGEX for="" the="" field=""&gt;&lt;BR /&gt;
DEST_KEY = _raw&lt;BR /&gt;
FORMAT = $1####$4&lt;/REGEX&gt;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[my_sourcetype]&lt;BR /&gt;
TRANSFORMS-include = anonymize_IP_Address&lt;/P&gt;

&lt;P&gt;If you can post your log events, then we can help&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:12:37 GMT</pubDate>
    <dc:creator>strive</dc:creator>
    <dc:date>2020-09-28T17:12:37Z</dc:date>
    <item>
      <title>How to prevent sensitive key-value pair in IIS cookie data from appearing in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162409#M32962</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm wondering if there is a way to prevent a sensitive key-value pair that exists in cs_Cookie from appearing in Splunk. I have tried using SEDCMD on the forwarder, and it does change the _raw data, but the indexed value of cs_Cookie still contains the original data. For example:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;IIS log&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
.. cs_Cookie ..&lt;BR /&gt;&lt;BR /&gt;
.. foo=bar;hide=me ..&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
SEDCMD-cookie-cleaner = s/hide=\w+/hide=XXXX/g&lt;/P&gt;

&lt;P&gt;As expected, this  changes the _raw data to:&lt;/P&gt;

&lt;P&gt;.. foo=bar;hide=XXXX ..&lt;/P&gt;

&lt;P&gt;But, when I expand an event:&lt;/P&gt;

&lt;P&gt;cs_Cookie="foo=bar;hide=me"&lt;/P&gt;

&lt;P&gt;How is the original value making it to the indexer, and how can I get rid of it?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2014 20:46:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162409#M32962</guid>
      <dc:creator>chrismullen</dc:creator>
      <dc:date>2014-07-29T20:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent sensitive key-value pair in IIS cookie data from appearing in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162410#M32963</link>
      <description>&lt;P&gt;You have done using sed script in props.conf. As per Splunk documentation sed scripts act only on _raw field.&lt;/P&gt;

&lt;P&gt;try anonymyzing data using regex transform and using the transform in props.conf&lt;/P&gt;

&lt;P&gt;For more details, check this&lt;/P&gt;

&lt;P&gt;&lt;A href="http://"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/Data/Anonymizedatausingconfigurationfiles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2014 21:56:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162410#M32963</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-29T21:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent sensitive key-value pair in IIS cookie data from appearing in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162411#M32964</link>
      <description>&lt;P&gt;Thanks for you quick reply.&lt;/P&gt;

&lt;P&gt;I have already tried to use a transform unsuccessfully.&lt;BR /&gt;
Following an example I tried&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SOURCE_KEY = MetaData:cs_Cookie
DEST_KEY = MetaData:cs_Cookie
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I still get he original values. Is this the right way to anonymize an extracted field?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2014 23:54:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162411#M32964</guid>
      <dc:creator>chrismullen</dc:creator>
      <dc:date>2014-07-29T23:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent sensitive key-value pair in IIS cookie data from appearing in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162412#M32965</link>
      <description>&lt;P&gt;I had to anonymize a field in my log events.. and i did this and it worked&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;[anonymize_IP_Address]&lt;BR /&gt;
REGEX = &lt;REGEX for="" the="" field=""&gt;&lt;BR /&gt;
DEST_KEY = _raw&lt;BR /&gt;
FORMAT = $1####$4&lt;/REGEX&gt;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[my_sourcetype]&lt;BR /&gt;
TRANSFORMS-include = anonymize_IP_Address&lt;/P&gt;

&lt;P&gt;If you can post your log events, then we can help&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:12:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162412#M32965</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2020-09-28T17:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent sensitive key-value pair in IIS cookie data from appearing in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162413#M32966</link>
      <description>&lt;P&gt;Here is a sample:&lt;/P&gt;

&lt;P&gt;#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Cookie) cs(Referer) sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken&lt;BR /&gt;
2014-07-30 22:25:39 ::1 GET / test16 8080 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko foo=bar - 200 0 0 299 281 0&lt;/P&gt;

&lt;P&gt;I have simplified it, but basically I would want:  &lt;/P&gt;

&lt;P&gt;cs(Cookie)="foo=bar"&lt;/P&gt;

&lt;P&gt;to be transformed into &lt;/P&gt;

&lt;P&gt;cs(Cookie)="foo=###"&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 22:34:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162413#M32966</guid>
      <dc:creator>chrismullen</dc:creator>
      <dc:date>2014-07-30T22:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent sensitive key-value pair in IIS cookie data from appearing in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162414#M32967</link>
      <description>&lt;P&gt;For the sample log that you have given, the foo=bar is in 11th position. I am taking space as the separator between positions.&lt;/P&gt;

&lt;P&gt;For your log sample, please see below.&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[anonymize_IP_Address]&lt;BR /&gt;
REGEX = (?i)^(?:[^ ]+ ){10}(?:foo=)([^ ]+)&lt;BR /&gt;
DEST_KEY = _raw&lt;BR /&gt;
FORMAT = $1###$2&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[my_sourcetype]&lt;BR /&gt;
TRANSFORMS-include = anonymize_IP_Address&lt;/P&gt;

&lt;P&gt;Since splunk automatically extracts the key value pairs and if the above configuration doesn't work then you add KV_MODE = none to your sourcetype in props.conf. For more information on KV_MODE, see props.conf splunk documentation&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:14:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-prevent-sensitive-key-value-pair-in-IIS-cookie-data-from/m-p/162414#M32967</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2020-09-28T17:14:21Z</dc:date>
    </item>
  </channel>
</rss>

