<?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: Configuration for a full forwarder - not filtering in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197544#M39237</link>
    <description>&lt;P&gt;Thanks, but this hasn't changed the behaviour at all.  All the log file lines are still being posted, so no filtering is occuring at the heavy forwarder.  The sourcetype is the name of the file, rather than dp.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Mar 2014 09:28:49 GMT</pubDate>
    <dc:creator>dp546987</dc:creator>
    <dc:date>2014-03-24T09:28:49Z</dc:date>
    <item>
      <title>Configuration for a full forwarder - not filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197542#M39235</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I've a full forwarder on machine A pointing at some log files in c:\temp*.log.  These are being forwared to the full splunk install on machine B.  I only want send the lines in the log files on machine A that contain the string [1:] or a [2:] to the splunk indexer from the forwarder on Machine B.&lt;/P&gt;

&lt;P&gt;My &lt;EM&gt;\etc\apps\search\local\inputs.conf&lt;/EM&gt; file looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://c:\temp\log\*.log]
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My &lt;EM&gt;\etc\apps\search\local\props.conf&lt;/EM&gt; file looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunkd]
EXTRACT-fields = (?i)^(?:[^ ]* ){2}(?:[+\-]\d+ )?(?P&amp;lt;log_level&amp;gt;[^ ]*)\s+(?P&amp;lt;component&amp;gt;[^ ]+) - (?P&amp;lt;message&amp;gt;.+)

[splunk_web_service]
EXTRACT-useragent = userAgent=(?P&amp;lt;browser&amp;gt;[^ (]+)

[source:c:\temp\log\...]
TRANSFORMS-dp = setTypeOne, setTypeTwo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My &lt;EM&gt;\etc\apps\search\local\transforms.conf&lt;/EM&gt; looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#   Version 6.0.2
[setTypeOne]
DEST_KEY = MetaData:Sourcetype
REGEX = \[1:1\]
FORMAT = sourcetype::dp

[setTypeTwo]
DEST_KEY = MetaData:Sourcetype
REGEX = \[1:2\]
FORMAT = sourcetype::dp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem are:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;No lines are being filtered out - the
web app is showing all the lines in
the file&lt;/LI&gt;
&lt;LI&gt;The sourcetype dp is not being created&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Any pointers would be gratefully received.&lt;BR /&gt;
Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 16:43:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197542#M39235</guid>
      <dc:creator>dp546987</dc:creator>
      <dc:date>2014-03-21T16:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration for a full forwarder - not filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197543#M39236</link>
      <description>&lt;P&gt;Maybe I seriously misunderstanding something, but these configs do not do anything of the sort.&lt;/P&gt;

&lt;P&gt;On your full forwarder, do the following assuming that you keep events that contain &lt;CODE&gt;[1:]&lt;/CODE&gt; or &lt;CODE&gt;[2:]&lt;/CODE&gt;;&lt;/P&gt;

&lt;P&gt;keep your inputs.conf as it is.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::c:\temp\log\*.log]
TRANSFORMS-do_stuff = setOneTwo, setnull, keepOneTwo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setOneTwo]
DEST_KEY = MetaData:Sourcetype
REGEX = \[(1|2):\]
FORMAT = sourcetype::dp

[setnull]
DEST_KEY = queue
REGEX = .
FORMAT = nullQueue

[keepOneTwo]
DEST_KEY = queue
REGEX = \[(1|2):\]
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The field extractions and that stuff you do one the search head/indexer.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;EDIT: updated the &lt;CODE&gt;source&lt;/CODE&gt; stanza in props.conf to reflect on the actual path (included wildcard). Should work better now. &lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2014 09:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197543#M39236</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-03-22T09:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration for a full forwarder - not filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197544#M39237</link>
      <description>&lt;P&gt;Thanks, but this hasn't changed the behaviour at all.  All the log file lines are still being posted, so no filtering is occuring at the heavy forwarder.  The sourcetype is the name of the file, rather than dp.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 09:28:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197544#M39237</guid>
      <dc:creator>dp546987</dc:creator>
      <dc:date>2014-03-24T09:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration for a full forwarder - not filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197545#M39238</link>
      <description>&lt;P&gt;Am I correct in where the config files are kept - \Splunk\etc\apps\search\local.  I notice that there is  a \Splunk\etc\apps\SplunkForwarder\local directory.  What( if anything ) should be kept in there with respect to my aim of filtering the data sent to the remote splunk server.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 09:31:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197545#M39238</guid>
      <dc:creator>dp546987</dc:creator>
      <dc:date>2014-03-24T09:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration for a full forwarder - not filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197546#M39239</link>
      <description>&lt;P&gt;As long as the search app is enabled on the forwarder, you can put your settings there. However, to be absolutely sure that they are being honoured, you should put them in &lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt;, where &lt;CODE&gt;$SPLUNK_HOME&lt;/CODE&gt; the installation directory - normally &lt;CODE&gt;c:\program files\splunk&lt;/CODE&gt; or &lt;CODE&gt;/opt/splunk&lt;/CODE&gt;. This location overrides any other setting, but has the disadvantage that configurations here cannot be altered from a Deployment Server. However, I don't think config file precedence plays a part in the behaviour you're (not) seeing.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 19:40:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197546#M39239</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-03-24T19:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration for a full forwarder - not filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197547#M39240</link>
      <description>&lt;P&gt;see update to answer above.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 19:50:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuration-for-a-full-forwarder-not-filtering/m-p/197547#M39240</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-03-24T19:50:33Z</dc:date>
    </item>
  </channel>
</rss>

