<?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: Routing and Filtering question in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Routing-and-Filtering-question/m-p/47129#M8931</link>
    <description>&lt;P&gt;Hm..why even monitor the files if you're going to discard most of them..?&lt;/P&gt;

&lt;P&gt;Well, perhaps you have to specify both transforms on the same line, like;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log/nginx/access.log] 
TRANSFORMS-ccp = discard_all, allow_all
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this case it seems pretty silly, but perhaps you have more clever filters elsewhere.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Thu, 30 Aug 2012 06:38:00 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2012-08-30T06:38:00Z</dc:date>
    <item>
      <title>Routing and Filtering question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Routing-and-Filtering-question/m-p/47128#M8930</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I've come across a strange problem that I can't seem to figure out how to fix or troubleshoot. My problem is that for some reason, I can't seem to get my source or host recognised in the filter. I have a default discard_all rule that discards all logs sent to my filter server unless I define another stanza or rule to specifically handle those log files:&lt;/P&gt;

&lt;P&gt;props.conf &lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;
TRANSFORMS-drop_all=discard_all&lt;/P&gt;

&lt;P&gt;For some reason it ignores my source and host stanzas&lt;BR /&gt;
[source::/var/log/nginx/access.log]&lt;BR /&gt;
TRANSFORMS-ccp=allow_all&lt;/P&gt;

&lt;P&gt;I have a filter set up with these entries in transforms.conf&lt;/P&gt;

&lt;P&gt;[discard_all]&lt;BR /&gt;
REGEX=.&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=nullQueue&lt;/P&gt;

&lt;P&gt;Use this transform to allow and forward all entries from log file to indexer&lt;BR /&gt;
[allow_all]&lt;BR /&gt;
REGEX=.&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=indexQueue&lt;/P&gt;

&lt;P&gt;I know that when I change my default rule to allow_all. the file comes through to the indexer. I'm stumped because other log files seem to work fine.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:21:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Routing-and-Filtering-question/m-p/47128#M8930</guid>
      <dc:creator>yongly</dc:creator>
      <dc:date>2020-09-28T12:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Routing and Filtering question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Routing-and-Filtering-question/m-p/47129#M8931</link>
      <description>&lt;P&gt;Hm..why even monitor the files if you're going to discard most of them..?&lt;/P&gt;

&lt;P&gt;Well, perhaps you have to specify both transforms on the same line, like;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log/nginx/access.log] 
TRANSFORMS-ccp = discard_all, allow_all
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this case it seems pretty silly, but perhaps you have more clever filters elsewhere.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 06:38:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Routing-and-Filtering-question/m-p/47129#M8931</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-08-30T06:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Routing and Filtering question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Routing-and-Filtering-question/m-p/47130#M8932</link>
      <description>&lt;P&gt;Well this is an intermediate server that we've been using for filtering. The idea is to keep control of what gets passed onto the indexer to avoid big files getting through and exceeding our licence. Hence a default discard and an explicit allow &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;I did wonder if another filter or stanza was picking it up and taking precedence but when I change the [default] to allow_all, the file comes through no problems.. this kind of suggests that for some reason it's not linking the access.log file and the stanza in props.conf.&lt;/P&gt;

&lt;P&gt;I did try your suggestion anyway, but no luck. Any other ideas as to how I might troubleshoot this? &lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 21:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Routing-and-Filtering-question/m-p/47130#M8932</guid>
      <dc:creator>yongly</dc:creator>
      <dc:date>2012-08-30T21:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Routing and Filtering question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Routing-and-Filtering-question/m-p/47131#M8933</link>
      <description>&lt;P&gt;did you remove the [default] discard transform?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2012 06:59:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Routing-and-Filtering-question/m-p/47131#M8933</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-08-31T06:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Routing and Filtering question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Routing-and-Filtering-question/m-p/47132#M8934</link>
      <description>&lt;P&gt;Yeh after some testing, I found that I had to remove it to get it to recognise the [source:..] stanza.&lt;/P&gt;

&lt;P&gt;What I don't understand is why it worked with other sources and sourcetypes but not with this one?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2012 07:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Routing-and-Filtering-question/m-p/47132#M8934</guid>
      <dc:creator>yongly</dc:creator>
      <dc:date>2012-08-31T07:05:00Z</dc:date>
    </item>
  </channel>
</rss>

