<?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 at index-time using SEDCMD in props.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211549#M41638</link>
    <description>&lt;P&gt;Hi locose,&lt;/P&gt;

&lt;P&gt;looks like the regex does not match your example events; this regex will match:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [SsNn_]+.+?['\s]+\d+'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;tested and working on &lt;A href="https://regex101.com"&gt;https://regex101.com&lt;/A&gt; . So your &lt;CODE&gt;props.conf&lt;/CODE&gt; should look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_source_type]
SEDCMD-ssncall = s/[SsNn_]+.+?['\s]+\d+'/*SSN    xxxxx/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Place this on the Splunk instance where the parsing happens &lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings"&gt;http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings&lt;/A&gt; and restart Splunk; it will also only be applied to new events.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Mon, 02 Nov 2015 19:32:17 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2015-11-02T19:32:17Z</dc:date>
    <item>
      <title>How to mask SSN at index-time using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211548#M41637</link>
      <description>&lt;P&gt;I'm trying to mask SSN using the SEDCMD command, but it isn't working. &lt;/P&gt;

&lt;P&gt;My search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype = my_source_type   *SSN
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;returns&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;'Call_SSN'   '123456789'
'Ssn_bla'    '987654321'
'bla_SSN'   '123456789'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I updated the system/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_source_type]
SEDCMD-ssncall = s/=\d{5}(\d{4})/*SSN   xxxxx\1/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it's not masking it. &lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 19:12:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211548#M41637</guid>
      <dc:creator>locose</dc:creator>
      <dc:date>2015-11-02T19:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN at index-time using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211549#M41638</link>
      <description>&lt;P&gt;Hi locose,&lt;/P&gt;

&lt;P&gt;looks like the regex does not match your example events; this regex will match:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [SsNn_]+.+?['\s]+\d+'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;tested and working on &lt;A href="https://regex101.com"&gt;https://regex101.com&lt;/A&gt; . So your &lt;CODE&gt;props.conf&lt;/CODE&gt; should look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_source_type]
SEDCMD-ssncall = s/[SsNn_]+.+?['\s]+\d+'/*SSN    xxxxx/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Place this on the Splunk instance where the parsing happens &lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings"&gt;http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings&lt;/A&gt; and restart Splunk; it will also only be applied to new events.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 19:32:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211549#M41638</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-11-02T19:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN at index-time using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211550#M41639</link>
      <description>&lt;P&gt;Hello MuS&lt;/P&gt;

&lt;P&gt;unfortunately that didn't work&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 20:13:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211550#M41639</guid>
      <dc:creator>locose</dc:creator>
      <dc:date>2015-11-02T20:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN at index-time using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211551#M41640</link>
      <description>&lt;P&gt;Can you tell what you did?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 20:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211551#M41640</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-11-02T20:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN at index-time using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211552#M41641</link>
      <description>&lt;P&gt;So my serach query is still &lt;/P&gt;

&lt;P&gt;sourcetype = my_source_type  SSN&lt;/P&gt;

&lt;P&gt;I'm still getting&lt;/P&gt;

&lt;P&gt;SsN_ENA&lt;BR /&gt;
Call_SSN&lt;BR /&gt;
BLA_sSN&lt;/P&gt;

&lt;P&gt;in the search results&lt;/P&gt;

&lt;P&gt;In the system/local/props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [my_source_type]
 SEDCMD-ssncall = s/[SsNn_]+.+?['\s]+\d+'/*SSN    xxxxx\1/g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:47:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211552#M41641</guid>
      <dc:creator>locose</dc:creator>
      <dc:date>2020-09-29T07:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN at index-time using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211553#M41642</link>
      <description>&lt;P&gt;take this run everywhere search which works:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval foo="'Call_SSN'   '123456789'
 'Ssn_bla'    '987654321'
 'bla_SSN'    '123456789'" | rex mode=sed max_match=0 field=foo "s/[SsNn_]+.+?['\s]+\d+'/*SSN    xxxxx/g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my provided SEDCMD will only replace the values NOT the fields.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 21:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211553#M41642</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-11-02T21:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN at index-time using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211554#M41643</link>
      <description>&lt;P&gt;If you are using &lt;CODE&gt;INDEXED_EXTRACTIONS&lt;/CODE&gt; to create those fields, then they are created at Index-Time in the time parsing portion of the pipeline that executes before the SEDCMD is executed.  If you get SEDCMD working what should happen is that field &lt;CODE&gt;_raw&lt;/CODE&gt; &lt;EM&gt;will&lt;/EM&gt; be modified, but the &lt;CODE&gt;INDEXED_EXTRACTIONS&lt;/CODE&gt; fields will still contain the pre-mod text.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 00:04:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211554#M41643</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-03T00:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask SSN at index-time using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211555#M41644</link>
      <description>&lt;P&gt;This is way I told this before &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; -&amp;gt; &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Place this on the Splunk instance where the parsing happens&lt;BR /&gt;
&lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings"&gt;http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings&lt;/A&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 03 Nov 2015 00:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-mask-SSN-at-index-time-using-SEDCMD-in-props-conf/m-p/211555#M41644</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-11-03T00:16:57Z</dc:date>
    </item>
  </channel>
</rss>

