<?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 mask SSN into our logs going into Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433040#M94409</link>
    <description>&lt;P&gt;Data that already ingested, can't be modified. Your masking configuration will only work on any new event that would come. I believe your only option would be to delete those events, so that they are not searchable anymore. If you still want other fields/data from those events, you can mask the data at search time (inline in search) and do summary indexing to save those records into different index before deleting them.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 19:12:10 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-07-12T19:12:10Z</dc:date>
    <item>
      <title>How to mask SSN into our logs going into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433035#M94404</link>
      <description>&lt;P&gt;Our code leaked SSNs into our logs and they went into Splunk, so i'm trying to mask it.  I tried it two ways (BTW, the regex works when i use it with &lt;CODE&gt;| regex _raw=&lt;/CODE&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;In &lt;CODE&gt;etc/system/local/props.conf&lt;/CODE&gt;:&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;CODE&gt;[source::/var/www/app/shared/log/production.log]&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;SEDCMD-ssn = s/(social_security_number..:..)\d{9}/\1[FILTERED]/g&lt;/CODE&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;In &lt;CODE&gt;etc/system/local/props.conf&lt;/CODE&gt;:&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;CODE&gt;[source::/var/www/app/shared/log/production.log]&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;TRANSFORMS-ssn = ssn_mask&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and &lt;CODE&gt;etc/system/local/transforms.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[ssn_mask]&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;DEST_KEY = _raw&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;REGEX = (social_security_number..:..)\d{9}&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;FORMAT = $1[FILTERED]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Neither works.  What am I missing?  This is on 6.5.0.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 01:22:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433035#M94404</guid>
      <dc:creator>ronerf</dc:creator>
      <dc:date>2018-07-12T01:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN into our logs going into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433036#M94405</link>
      <description>&lt;P&gt;Hi ronerf,&lt;/P&gt;

&lt;P&gt;Your configurations looks good. Can you provide sample event(s) to see why these configurations doesn't work. Also, please remember that these configurations should be applied to both source and destination of the data, which means in a typical deployment, configs should be present on universal forwarders, heavy forwarders (if you're using this) and indexers. &lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 14:56:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433036#M94405</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-07-12T14:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN into our logs going into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433037#M94406</link>
      <description>&lt;P&gt;yes, please provide a few samples of sanitized SSN and the event around.&lt;/P&gt;

&lt;P&gt;Also the transforms are happening at index time, therefore they have to be setup&lt;BR /&gt;
 on the first server parsing the events.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;for regular logs, this means the indexers, or the first heavy forwarder of the chain (if any)&lt;/LI&gt;
&lt;LI&gt;for structured logs (INDEXED_EXTRACTIONS=csv or json,,,), this means on the first forwarder who collected the logs (this may be the Universal forwarder)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 12 Jul 2018 16:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433037#M94406</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2018-07-12T16:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN into our logs going into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433038#M94407</link>
      <description>&lt;P&gt;This is the relevant part of the JSON blob:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;{"params":{"{\"applicants\":{\"primary\":{\"social_security_number\":\"SSNNUMBER\"}}}":"[FILTERED]"}}&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;SSNNUMBER&lt;/CODE&gt;is a 9-digit number.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 19:04:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433038#M94407</guid>
      <dc:creator>ronerf</dc:creator>
      <dc:date>2018-07-12T19:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN into our logs going into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433039#M94408</link>
      <description>&lt;P&gt;The code that generates the logs has been corrected to filter the SSNs, so the goal is to mask the logs that have already been indexed in splunk.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 19:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433039#M94408</guid>
      <dc:creator>ronerf</dc:creator>
      <dc:date>2018-07-12T19:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN into our logs going into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433040#M94409</link>
      <description>&lt;P&gt;Data that already ingested, can't be modified. Your masking configuration will only work on any new event that would come. I believe your only option would be to delete those events, so that they are not searchable anymore. If you still want other fields/data from those events, you can mask the data at search time (inline in search) and do summary indexing to save those records into different index before deleting them.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 19:12:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433040#M94409</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-07-12T19:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN into our logs going into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433041#M94410</link>
      <description>&lt;P&gt;Based on sample data, your SEDCMD setting should be adjusted a little. Below is the modified version. Give it a try...&lt;BR /&gt;
 SEDCMD-ssn = s/(social_security_number..:..)\d{9}(\\")/\1xxxxxxxxx\2/g&lt;/P&gt;

&lt;P&gt;Please note that data can't be modified once indexed. This mask will be effected to new events.&lt;/P&gt;

&lt;P&gt;You can find some information here: &lt;A href="https://answers.splunk.com/answers/22835/how-can-we-anonymize-user-date-at-search-time.html" target="_blank"&gt;https://answers.splunk.com/answers/22835/how-can-we-anonymize-user-date-at-search-time.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433041#M94410</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2020-09-29T20:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN into our logs going into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433042#M94411</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;The code that generates the logs has been corrected to filter the SSNs, so the goal is to mask the logs that have already been indexed in splunk.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;then no, you cannot safely hide the SSN from the events at search time, as they are in the raw data.&lt;/P&gt;

&lt;P&gt;The solution is to create a search that will find all the events with SSN, and use the " | delete" command to mark them as delete on the buckets. (may be more tricky on an indexer cluster)&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Indexer/RemovedatafromSplunk#Delete_events_from_subsequent_searches"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Indexer/RemovedatafromSplunk#Delete_events_from_subsequent_searches&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 00:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433042#M94411</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2018-07-13T00:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN into our logs going into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433043#M94412</link>
      <description>&lt;P&gt;Thanks, everyone.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 16:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-into-our-logs-going-into-Splunk/m-p/433043#M94412</guid>
      <dc:creator>ronerf</dc:creator>
      <dc:date>2018-07-16T16:23:09Z</dc:date>
    </item>
  </channel>
</rss>

