<?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: Search-time Mask in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Search-time-Mask/m-p/14365#M1463</link>
    <description>&lt;P&gt;If sensitive info were accidentally indexed (e.g. PII like SSN#) as part of other logdata that you didn't want any Splunk users to see, would the only solution be to delete, edit(raw) and then reIndex?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sean&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2010 21:00:05 GMT</pubDate>
    <dc:creator>sdwilkerson</dc:creator>
    <dc:date>2010-05-27T21:00:05Z</dc:date>
    <item>
      <title>Search-time Mask</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-time-Mask/m-p/14363#M1461</link>
      <description>&lt;P&gt;Some events flow into the Splunk instance via syslog sockets.&lt;/P&gt;

&lt;P&gt;For a brief period of time, the sourcetypes that came in via syslog were prepended with the standard syslog code like &amp;lt;142&amp;gt; (so the line would read &amp;lt;142&amp;gt;May 6 ...).  This was only for a few days.&lt;/P&gt;

&lt;P&gt;Is there a way I can do a built-in search-time extraction to mask the &amp;lt;\d+&amp;gt; prepended to these sourcetypes so that
1. It is not seen and 
2. All of the rest of the props/transforms extractions will work as if it wasn't there?&lt;/P&gt;

&lt;P&gt;Note: I do not mean to use something like rex in the search-command, but rather, make the change in the splunk configs to mask these characters from any search results.&lt;/P&gt;

&lt;P&gt;Sean&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2010 10:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-time-Mask/m-p/14363#M1461</guid>
      <dc:creator>sdwilkerson</dc:creator>
      <dc:date>2010-05-27T10:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search-time Mask</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-time-Mask/m-p/14364#M1462</link>
      <description>&lt;P&gt;I recommend against it, but you could do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
EXTRACT-out = (?s)^(?:\&amp;lt;\d+\&amp;gt;)?(?&amp;lt;altraw&amp;gt;.*)
FIELDALIAS-raw = altraw as _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Update: Oh, but FIELDALIAS runs after all other extractions, so no the other extractions won't work as if it wasn't there. And as you've no doubt found, you can't overwrite &lt;CODE&gt;_raw&lt;/CODE&gt; with an &lt;CODE&gt;EXTRACT&lt;/CODE&gt; or &lt;CODE&gt;REPORT&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2010 11:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-time-Mask/m-p/14364#M1462</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-05-27T11:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Search-time Mask</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-time-Mask/m-p/14365#M1463</link>
      <description>&lt;P&gt;If sensitive info were accidentally indexed (e.g. PII like SSN#) as part of other logdata that you didn't want any Splunk users to see, would the only solution be to delete, edit(raw) and then reIndex?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sean&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2010 21:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-time-Mask/m-p/14365#M1463</guid>
      <dc:creator>sdwilkerson</dc:creator>
      <dc:date>2010-05-27T21:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search-time Mask</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-time-Mask/m-p/14366#M1464</link>
      <description>&lt;P&gt;You can use the &lt;CODE&gt;| delete&lt;/CODE&gt; command to prevent specific events from being returned in search. (Note it does not reclaim disk space or remove the data from the disk, but simply makes it unretrieveable via Splunk.) Yes, then you can edit the raw data (or set up a &lt;CODE&gt;TRANSFORM&lt;/CODE&gt; or &lt;CODE&gt;SEDCMD&lt;/CODE&gt; to edit the data as is comes in and reindex.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2010 21:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-time-Mask/m-p/14366#M1464</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-05-27T21:33:29Z</dc:date>
    </item>
  </channel>
</rss>

