<?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: route unwanted logs to a null queue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43538#M8137</link>
    <description>&lt;P&gt;This will work for sure, unless you have a typo or configuration issue.  Just copy-and-paste these:&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/&lt;STRONG&gt;props.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::....log...]
TRANSFORMS-debug_log = debug_log_transform
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[debug_log_transform]
REGEX=DEBUG\s\[
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 12 Feb 2011 08:40:14 GMT</pubDate>
    <dc:creator>Ron_Naken</dc:creator>
    <dc:date>2011-02-12T08:40:14Z</dc:date>
    <item>
      <title>route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43534#M8133</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to prevent DEBUG logging from bieng indexed by the splunk indexers. we use light weight forwarders on both linux and window boxes, hte indexer is in a linux box.&lt;/P&gt;

&lt;P&gt;so here is what I tried. the two files below are in the indexers since we use a light weight forwarder&lt;/P&gt;

&lt;P&gt;1- create propes.conf in %SPLUNK_HOME%/etc/system/local/props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::....log(.\d+)?]
TRANSFORMS-debug_log = debug_log_transform
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2- create transforms.conf in %SPLUNK_HOME/etc/system/local/transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[debug_log_transform]
REGEX = \d+\.\d+\.\d+\s\d+\.\d+\.\d+\.\d+\sDEBUG(.*)$
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;doing the above in splunk indexer is not working for me, am I doing some thing wrong here?&lt;/P&gt;

&lt;P&gt;the sample logs I need to exclude is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2011-02-11 23:04:05,448 DEBUG [com.nphase.magicbus.autobinding.cxf.transport.incantation.IncantationConduit] - ...done
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,
Firas&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 07:07:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43534#M8133</guid>
      <dc:creator>firasarabo</dc:creator>
      <dc:date>2011-02-12T07:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43535#M8134</link>
      <description>&lt;P&gt;It's difficult to read with the formatting of your question, but off-hand, it looks like there are a couple issues that might cause your transform to fail:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;try [source::....log...] in your props.conf (check your spelling, it shows as propes.conf in the question.&lt;/LI&gt;
&lt;LI&gt;your REGEX looks incorrect, I would try REGEX=DEBUG\s\[&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;P.S.  You might want to edit your question and highlight your "code" sections that aren't formatting properly and click the "101010" button on the editor bar.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 07:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43535#M8134</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-12T07:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43536#M8135</link>
      <description>&lt;P&gt;you are right, the formatting was not good, I edited by adding few "new lines" hope that cleared things. i'll also try your suggestions&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 07:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43536#M8135</guid>
      <dc:creator>firasarabo</dc:creator>
      <dc:date>2011-02-12T07:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43537#M8136</link>
      <description>&lt;P&gt;I tried your suggestions but still not working for me.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 08:06:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43537#M8136</guid>
      <dc:creator>firasarabo</dc:creator>
      <dc:date>2011-02-12T08:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43538#M8137</link>
      <description>&lt;P&gt;This will work for sure, unless you have a typo or configuration issue.  Just copy-and-paste these:&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/&lt;STRONG&gt;props.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::....log...]
TRANSFORMS-debug_log = debug_log_transform
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[debug_log_transform]
REGEX=DEBUG\s\[
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 12 Feb 2011 08:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43538#M8137</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-12T08:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43539#M8138</link>
      <description>&lt;P&gt;I had a typo in the source, but you should be able to copy the examples from the samples I pasted.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 08:41:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43539#M8138</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-12T08:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43540#M8139</link>
      <description>&lt;P&gt;Ron, that didn't work either.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 09:07:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43540#M8139</guid>
      <dc:creator>firasarabo</dc:creator>
      <dc:date>2011-02-12T09:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43541#M8140</link>
      <description>&lt;P&gt;I tried this in the lab and it works for me, using the log entry you posted.  This will work for any file whose filename contains .log anywhere in the path/filename, unless you have another props.conf/transforms.conf that is overriding these settings.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 09:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43541#M8140</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-12T09:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43542#M8141</link>
      <description>&lt;P&gt;By the way, check all your apps ($SPLUNK_HOME/etc/apps/&lt;APP&gt;) for props.conf/transforms.conf settings that might be overriding these.&lt;/APP&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 09:13:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43542#M8141</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-12T09:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43543#M8142</link>
      <description>&lt;P&gt;Note:  You might also have a transform that is applied to the sourcetype or host that is affecting these settings.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 09:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43543#M8142</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-12T09:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43544#M8143</link>
      <description>&lt;P&gt;I found many props.conf under $SPLUNK_HOME/etc/apps/ and I am not suer which one is really used by splunk. just to be on the same page, I am looking only on the indexer and not teh forwarders, let me know if you meant to look on the forwarders. teh list of props.conf is:&lt;/P&gt;

&lt;P&gt;./apps/learned/local/props.conf&lt;BR /&gt;
./apps/sample_app/default/props.conf&lt;BR /&gt;
./apps/unix/default/props.conf&lt;BR /&gt;
./apps/search/default/props.conf&lt;BR /&gt;
./apps/SplunkLightForwarder/default/props.conf&lt;/P&gt;

&lt;P&gt;list of transorms.conf:&lt;/P&gt;

&lt;P&gt;./apps/unix/default/transforms.conf&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2011 07:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43544#M8143</guid>
      <dc:creator>firasarabo</dc:creator>
      <dc:date>2011-02-14T07:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43545#M8144</link>
      <description>&lt;P&gt;If there's a props/transforms that is overriding yours, it's likely going to be in one of the /local folder, not the /default folders.  I would make this change on the forwarders, so the irrelevant data is never sent to the indexer.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2011 10:30:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43545#M8144</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-14T10:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43546#M8145</link>
      <description>&lt;P&gt;Ron,&lt;/P&gt;

&lt;P&gt;it seems that your solution is working for me on one environment but not the other. on the one that is working I am not seeing DEBUG logs as used to, I'll need to monitor it for a bit and confirm.&lt;/P&gt;

&lt;P&gt;I do have a question though. so if I understand it correctly all DEBUG logging is going to a nullQueue and will not be indexed therefore it will not affect our license limit?&lt;/P&gt;

&lt;P&gt;Thanks,
Firas&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2011 01:39:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43546#M8145</guid>
      <dc:creator>firasarabo</dc:creator>
      <dc:date>2011-02-15T01:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43547#M8146</link>
      <description>&lt;P&gt;Correct.  This transform throws the data away before it is indexed, so it won't count towards your license.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2011 02:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43547#M8146</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-15T02:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: route unwanted logs to a null queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43548#M8147</link>
      <description>&lt;P&gt;Firas, did you ever manage to solve this? I'm facing a similar situation.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2011 13:00:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-unwanted-logs-to-a-null-queue/m-p/43548#M8147</guid>
      <dc:creator>spock_yh</dc:creator>
      <dc:date>2011-10-11T13:00:26Z</dc:date>
    </item>
  </channel>
</rss>

