<?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: My Indexer is not processing &amp;quot;Keep specific events and discard the rest&amp;quot; in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440762#M8003</link>
    <description>&lt;P&gt;OK give this a try. Use the configs from your original message  but add SOURCE_KEY like so&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setparsing]
REGEX=lasconpr01vmw08.las.ssnsgs.net
DEST_KEY = queue
SOURCE_KEY = MetaData:Host
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 31 Jan 2019 20:17:06 GMT</pubDate>
    <dc:creator>chrisyounger</dc:creator>
    <dc:date>2019-01-31T20:17:06Z</dc:date>
    <item>
      <title>My Indexer is not processing "Keep specific events and discard the rest"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440755#M7996</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;
I have one app that generates a lot of data and it is killing my license. We need this data for sensitive customer only.&lt;BR /&gt;
So, I followed &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;BR /&gt;
Keep specific events and discard the rest:&lt;BR /&gt;
My props.conf is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[metrics-app-gateway]
TRANSFORMS-set= setnull,setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And trasnsforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX=lasconpr01vmw08.las.ssnsgs.net
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But for some reason it is not working. When I comment out #TRANSFORMS-set= in props.conf, I ingested the file properly.&lt;BR /&gt;
How can I troubleshoot this? How come it is not passing by REGEX?&lt;/P&gt;

&lt;P&gt;Thank you&lt;BR /&gt;
Gerson Garcia.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 19:29:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440755#M7996</guid>
      <dc:creator>GersonGarcia</dc:creator>
      <dc:date>2019-01-31T19:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: My Indexer is not processing "Keep specific events and discard the rest"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440756#M7997</link>
      <description>&lt;P&gt;Hi @GersonGarcia&lt;/P&gt;

&lt;P&gt;Does the string &lt;CODE&gt;lasconpr01vmw08.las.ssnsgs.net&lt;/CODE&gt; exist in the _raw message? This won't match the MetaData fields&lt;/P&gt;

&lt;P&gt;Secondly, this props and transforms are parse time (unless using indexed extractions) that means they need to go on the Indexer, or heavy forwarder if the data goes through a heavy forwarder.&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 19:36:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440756#M7997</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-01-31T19:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: My Indexer is not processing "Keep specific events and discard the rest"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440757#M7998</link>
      <description>&lt;P&gt;Ah, that may be the reason. Is there any way I can use MetaData field something like:&lt;BR /&gt;
REGEX=host::lasconpr01vmw08.las.ssnsgs.net&lt;/P&gt;

&lt;P&gt;The props.conf and transforms.conf are in the Indexer&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 19:43:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440757#M7998</guid>
      <dc:creator>GersonGarcia</dc:creator>
      <dc:date>2019-01-31T19:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: My Indexer is not processing "Keep specific events and discard the rest"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440758#M7999</link>
      <description>&lt;P&gt;This should work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::lasconpr01vmw08.las.ssnsgs.net]
TRANSFORMS-set= setparsing

[host::&amp;lt;other hosts&amp;gt;]
TRANSFORMS-set= setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note you will have to set the other_hosts yourself.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 19:49:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440758#M7999</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-01-31T19:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: My Indexer is not processing "Keep specific events and discard the rest"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440759#M8000</link>
      <description>&lt;P&gt;But hold on, if I do that, I will exclude everything else (all apps and logs):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::&amp;lt;other hosts&amp;gt;]
TRANSFORMS-set= setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Right?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:04:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440759#M8000</guid>
      <dc:creator>GersonGarcia</dc:creator>
      <dc:date>2019-01-31T20:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: My Indexer is not processing "Keep specific events and discard the rest"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440760#M8001</link>
      <description>&lt;P&gt;Yes that's right. So you should set it very carefully. Sorry I should have made that clearer.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:06:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440760#M8001</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-01-31T20:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: My Indexer is not processing "Keep specific events and discard the rest"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440761#M8002</link>
      <description>&lt;P&gt;I can't do that, I just need to stop index this particular stanza [metrics-app-gateway] for all hosts except lasconpr01vmw08.las.ssnsgs.net.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:10:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440761#M8002</guid>
      <dc:creator>GersonGarcia</dc:creator>
      <dc:date>2019-01-31T20:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: My Indexer is not processing "Keep specific events and discard the rest"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440762#M8003</link>
      <description>&lt;P&gt;OK give this a try. Use the configs from your original message  but add SOURCE_KEY like so&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setparsing]
REGEX=lasconpr01vmw08.las.ssnsgs.net
DEST_KEY = queue
SOURCE_KEY = MetaData:Host
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440762#M8003</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-01-31T20:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: My Indexer is not processing "Keep specific events and discard the rest"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440763#M8004</link>
      <description>&lt;P&gt;It didn't work. It is not finding the REGEX. In the documentation I found:&lt;/P&gt;

&lt;P&gt;Data:Host       : The host associated with the event.&lt;BR /&gt;
                      The value must be prefixed by "host::"&lt;/P&gt;

&lt;P&gt;What does it mean?&lt;/P&gt;

&lt;P&gt;In my inputs.conf I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///usr/ssn/gateway/logs/metrics.log]
host = lasconpr01vmw08.las.ssnsgs.net
sourcetype = metrics-app-gateway
_meta = ssnservice::CONED-PROD01
index = ssn
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should I add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///usr/ssn/gateway/logs/metrics.log]
host = lasconpr01vmw08.las.ssnsgs.net
sourcetype = metrics-app-gateway
_meta = ssnservice::CONED-PROD01 host::lasconpr01vmw08.las.ssnsgs.net
index = ssn
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Jan 2019 21:37:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/My-Indexer-is-not-processing-quot-Keep-specific-events-and/m-p/440763#M8004</guid>
      <dc:creator>GersonGarcia</dc:creator>
      <dc:date>2019-01-31T21:37:43Z</dc:date>
    </item>
  </channel>
</rss>

