<?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: Filtering events on indexer received from LightForwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-on-indexer-received-from-LightForwarder/m-p/92056#M19127</link>
    <description>&lt;P&gt;I would suggest using a sourcetype in place of source. Since the source will be set to each file under the directory being monitored, the transforms may not match.
You can try the following:&lt;/P&gt;

&lt;P&gt;On fwd:&lt;/P&gt;

&lt;PRE&gt;
[monitor:///home/tomcat1/apache-tomcat-6.0.24/logs]
disabled=false
host=prod_228_1
index=production
sourcetype=apache_logs
&lt;/PRE&gt;

&lt;P&gt;On indexer:&lt;/P&gt;

&lt;PRE&gt;
[sourcetype::apache_logs]
TRANSFORMS-null=setnull

[setnull]
REGEX = healthCheck
DEST_KEY = queue
FORMAT = nullQueue
&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Apr 2011 00:16:25 GMT</pubDate>
    <dc:creator>jkerai</dc:creator>
    <dc:date>2011-04-14T00:16:25Z</dc:date>
    <item>
      <title>Filtering events on indexer received from LightForwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-on-indexer-received-from-LightForwarder/m-p/92054#M19125</link>
      <description>&lt;P&gt;I'm trying to filter some events on an indexer that I'm not interested in. I have a single indexer/search node and three app server nodes that I'm running a SplunkLightForwarder on. The input to each of the SLF is the following (inputs.conf):&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;
[monitor:///home/tomcat1/apache-tomcat-6.0.24/logs]&lt;BR /&gt;
disabled=false&lt;BR /&gt;
host=prod_228_1&lt;BR /&gt;
index=production
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;There are several different kinds of log files in the logs directory monitored above. I'm trying to filter the following log entries out of localhost_access log files in the above mentioned directory:&lt;/P&gt;

&lt;P&gt;10.72.134.3 - - [20/Aug/2010:16:13:55 -0700] "GET /ddp/server/healthCheck " 200 86&lt;/P&gt;

&lt;P&gt;I understand that I cannot filter using SLF, so I'm setting up a filter to throw these events away on the indexer node.&lt;/P&gt;

&lt;P&gt;In my $(SPLUNK_HOME)/etc/system/locals/props.conf on the indexer node I have the following:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;
[source::home/tomcat1/apache-tomcat-6.0.24/logs]&lt;BR /&gt;
TRANSFORMS-null= setnull
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;In my $(SPLUNK_HOME)/etc/system/locals/transforms.conf on the indexer node I have the following:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;
[setnull]&lt;BR /&gt;
REGEX = healthCheck&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;After configuring as described above and restarting, the indexer node is still indexing the healthCheck entries in my log files.&lt;/P&gt;

&lt;P&gt;I've checked several questions/answers in this forum and cannot find a resolution to my problem. What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2010 05:08:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-on-indexer-received-from-LightForwarder/m-p/92054#M19125</guid>
      <dc:creator>mburbidg</dc:creator>
      <dc:date>2010-11-19T05:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events on indexer received from LightForwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-on-indexer-received-from-LightForwarder/m-p/92055#M19126</link>
      <description>&lt;P&gt;Just one dumb question -- is the "$SPLUNK_HOME/etc/system/locals" a typo?  The directory is actually "$SPLUNK_HOME/etc/system/local".&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:21:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-on-indexer-received-from-LightForwarder/m-p/92055#M19126</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2020-09-28T09:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events on indexer received from LightForwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-on-indexer-received-from-LightForwarder/m-p/92056#M19127</link>
      <description>&lt;P&gt;I would suggest using a sourcetype in place of source. Since the source will be set to each file under the directory being monitored, the transforms may not match.
You can try the following:&lt;/P&gt;

&lt;P&gt;On fwd:&lt;/P&gt;

&lt;PRE&gt;
[monitor:///home/tomcat1/apache-tomcat-6.0.24/logs]
disabled=false
host=prod_228_1
index=production
sourcetype=apache_logs
&lt;/PRE&gt;

&lt;P&gt;On indexer:&lt;/P&gt;

&lt;PRE&gt;
[sourcetype::apache_logs]
TRANSFORMS-null=setnull

[setnull]
REGEX = healthCheck
DEST_KEY = queue
FORMAT = nullQueue
&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Apr 2011 00:16:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-on-indexer-received-from-LightForwarder/m-p/92056#M19127</guid>
      <dc:creator>jkerai</dc:creator>
      <dc:date>2011-04-14T00:16:25Z</dc:date>
    </item>
  </channel>
</rss>

