<?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: Filter specific data to indexer in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133069#M27337</link>
    <description>&lt;P&gt;first of all you can't filter this not to be forwarded from forwarder. It need to be done on the indexer. Not sure as it is a single event how to apply sedcmd on this&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2014 05:39:35 GMT</pubDate>
    <dc:creator>linu1988</dc:creator>
    <dc:date>2014-04-16T05:39:35Z</dc:date>
    <item>
      <title>Filter specific data to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133068#M27336</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
i do not want to forward the body and the content field to indexer, how to go abt doing it? thks&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xml&amp;gt;
    &amp;lt;Field1&amp;gt;123&amp;lt;/Field1&amp;gt;
    &amp;lt;Field2&amp;gt;456&amp;lt;/Field2&amp;gt;
    &amp;lt;Body&amp;gt;Not to be forward to indexer&amp;lt;/Body&amp;gt;
    &amp;lt;Field3&amp;gt;333&amp;lt;/Field3&amp;gt;
    &amp;lt;content&amp;gt;not to be forward&amp;lt;/content&amp;gt;
&amp;lt;/xml&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Apr 2014 03:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133068#M27336</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2014-04-16T03:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter specific data to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133069#M27337</link>
      <description>&lt;P&gt;first of all you can't filter this not to be forwarded from forwarder. It need to be done on the indexer. Not sure as it is a single event how to apply sedcmd on this&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 05:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133069#M27337</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-16T05:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter specific data to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133070#M27338</link>
      <description>&lt;P&gt;Hi SplunkCSIT,&lt;/P&gt;

&lt;P&gt;take a look at the docs about &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues"&gt;Filter event data and send to queues&lt;/A&gt;. If the wanted and unwanted fields are all in one event, you may need to use &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/Data/Anonymizedatausingconfigurationfiles"&gt;this example&lt;/A&gt; and instead of replacing the data you blank them out.&lt;/P&gt;

&lt;P&gt;In your case you can either set the regex to something like this &lt;CODE&gt;&amp;lt;Field\d+&amp;gt;(.+)&amp;lt;\/Field\d+&amp;gt;&lt;/CODE&gt; to match and keep only the &lt;CODE&gt;Field&lt;/CODE&gt; events or set the regex to match &lt;CODE&gt;(&amp;lt;Body&amp;gt;|&amp;lt;content&amp;gt;)(.+)&amp;lt;\/&lt;/CODE&gt; and have that removed.&lt;/P&gt;

&lt;P&gt;The regex's are untested because I don't have the real world event, so maybe they need some tuning.&lt;/P&gt;

&lt;P&gt;Update: and like @linu1988 said, this must be done on a parsing Splunk instance like a Indexer and/or a heavy forarwder.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 05:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133070#M27338</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-16T05:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filter specific data to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133071#M27339</link>
      <description>&lt;P&gt;the props.conf and transforms.conf to be configured at forwarder or indexer?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 00:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133071#M27339</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2014-04-17T00:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filter specific data to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133072#M27340</link>
      <description>&lt;P&gt;at props.conf,&lt;BR /&gt;
[test]&lt;BR /&gt;
TRANSFORMS-null = content&lt;/P&gt;

&lt;P&gt;at transforms.conf,&lt;BR /&gt;
[content]&lt;BR /&gt;
REGEX = &lt;CONTENT&gt;(.+)&amp;lt;\/content&amp;gt;&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/CONTENT&gt;&lt;/P&gt;

&lt;P&gt;I configured the props.conf and transforms.conf for both forwarder and indexer but it does not work. Any problem with my config files?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 02:08:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133072#M27340</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2014-04-17T02:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filter specific data to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133073#M27341</link>
      <description>&lt;P&gt;someone had provided me the ans.it worked&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 16:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133073#M27341</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2014-04-17T16:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filter specific data to indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133074#M27342</link>
      <description>&lt;P&gt;props.conf and transforms.conf needs to configured on indexer, not at Universal forwarder. If you have heavy forwarder, you can use props.conf and transforms.conf.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 17:03:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-specific-data-to-indexer/m-p/133074#M27342</guid>
      <dc:creator>tararso</dc:creator>
      <dc:date>2014-04-17T17:03:16Z</dc:date>
    </item>
  </channel>
</rss>

