<?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: Is it possible to remove data from an event before indexing? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-remove-data-from-an-event-before-indexing/m-p/140962#M28862</link>
    <description>&lt;P&gt;In props.conf you can use the command:&lt;BR /&gt;
&lt;CODE&gt;SEDCMD&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/Data/Anonymizedatausingconfigurationfiles#Anonymize_data_through_a_sed_script" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.4/Data/Anonymizedatausingconfigurationfiles#Anonymize_data_through_a_sed_script&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This doc talks about anonymizing data using a SED script... and what it does is match a pattern and replace it in the example.&lt;BR /&gt;
You'll do the same, but replace it with nothing... You can try the effect using the Data onboarding wizard (Add Data)&lt;/P&gt;

&lt;P&gt;But it would be something like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;props.conf&lt;BR /&gt;
SEDCMD - dumpAttach  = /s\[^\&amp;lt;]+\&amp;lt;\/attachments\&amp;gt;//g&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 06:49:28 GMT</pubDate>
    <dc:creator>rsennett_splunk</dc:creator>
    <dc:date>2020-09-29T06:49:28Z</dc:date>
    <item>
      <title>Is it possible to remove data from an event before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-remove-data-from-an-event-before-indexing/m-p/140961#M28861</link>
      <description>&lt;P&gt;I've been asked to index a new sourcetype which is a set of XML-files. The files contains a tag &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;attachments&amp;gt;...&amp;lt;/attachments&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which I want to skip, since it is of no value at all indexing the attachment as raw data...it just makes it harder to see the forest for all the trees.&lt;/P&gt;

&lt;P&gt;Could this be done?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;BR /&gt;
Realized that the most obvious answer is "Preprocess the files, remove the tag then index the file", but still hoping that Splunk can be told to do this for me.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 05:16:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-remove-data-from-an-event-before-indexing/m-p/140961#M28861</guid>
      <dc:creator>rune_hellem</dc:creator>
      <dc:date>2015-07-29T05:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to remove data from an event before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-remove-data-from-an-event-before-indexing/m-p/140962#M28862</link>
      <description>&lt;P&gt;In props.conf you can use the command:&lt;BR /&gt;
&lt;CODE&gt;SEDCMD&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/Data/Anonymizedatausingconfigurationfiles#Anonymize_data_through_a_sed_script" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.4/Data/Anonymizedatausingconfigurationfiles#Anonymize_data_through_a_sed_script&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This doc talks about anonymizing data using a SED script... and what it does is match a pattern and replace it in the example.&lt;BR /&gt;
You'll do the same, but replace it with nothing... You can try the effect using the Data onboarding wizard (Add Data)&lt;/P&gt;

&lt;P&gt;But it would be something like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;props.conf&lt;BR /&gt;
SEDCMD - dumpAttach  = /s\[^\&amp;lt;]+\&amp;lt;\/attachments\&amp;gt;//g&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:49:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-remove-data-from-an-event-before-indexing/m-p/140962#M28862</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2020-09-29T06:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to remove data from an event before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-remove-data-from-an-event-before-indexing/m-p/140963#M28863</link>
      <description>&lt;P&gt;That did the trick!!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 07:59:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-remove-data-from-an-event-before-indexing/m-p/140963#M28863</guid>
      <dc:creator>rune_hellem</dc:creator>
      <dc:date>2015-07-29T07:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to remove data from an event before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-remove-data-from-an-event-before-indexing/m-p/140964#M28864</link>
      <description>&lt;P&gt;Great! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 17:37:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-remove-data-from-an-event-before-indexing/m-p/140964#M28864</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2015-07-29T17:37:52Z</dc:date>
    </item>
  </channel>
</rss>

