<?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: Can a Universal forwarder filter lines from log? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-a-Universal-forwarder-filter-lines-from-log/m-p/226275#M44216</link>
    <description>&lt;P&gt;You will need to move the props.conf and transforms.conf to your indexer or heavy forwarder. The universal forwarder does not process props and transforms since those pipelines are not turned on.  &lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2015 19:05:12 GMT</pubDate>
    <dc:creator>dgrubb_splunk</dc:creator>
    <dc:date>2015-11-12T19:05:12Z</dc:date>
    <item>
      <title>Can a Universal forwarder filter lines from log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-a-Universal-forwarder-filter-lines-from-log/m-p/226274#M44215</link>
      <description>&lt;P&gt;I've read the docs on how to filter events from:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/Deploy/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.3/Deploy/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The documentation makes mention that somethings the light and "Universal forwarder" cannot do... is this one of those things? If so where DO you filter this to keep from getting it into the DB?&lt;/P&gt;

&lt;P&gt;The log lines with "ipmon" text still are sent. The universal forwarder is running on a solaris 10 host.&lt;/P&gt;

&lt;P&gt;My configuration is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunkforwarder/etc/apps/search/local/inputs.conf
[monitor:///var/log/local0/debug]
disabled = false
## filter ipmon logs out of forwarded logs
sourcetype = local0_syslog
queue = parsingQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/opt/splunkforwarder/etc/system/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[local0_syslog]
TRANSFORMS-null= setnull_ipmon
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/opt/splunkforwarder/etc/system/local/transform.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull_ipmon]
#match anything with ipmon and toss it
REGEX =ipmon
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Nov 2015 18:49:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-a-Universal-forwarder-filter-lines-from-log/m-p/226274#M44215</guid>
      <dc:creator>mwilson</dc:creator>
      <dc:date>2015-11-12T18:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can a Universal forwarder filter lines from log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-a-Universal-forwarder-filter-lines-from-log/m-p/226275#M44216</link>
      <description>&lt;P&gt;You will need to move the props.conf and transforms.conf to your indexer or heavy forwarder. The universal forwarder does not process props and transforms since those pipelines are not turned on.  &lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 19:05:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-a-Universal-forwarder-filter-lines-from-log/m-p/226275#M44216</guid>
      <dc:creator>dgrubb_splunk</dc:creator>
      <dc:date>2015-11-12T19:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can a Universal forwarder filter lines from log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-a-Universal-forwarder-filter-lines-from-log/m-p/226276#M44217</link>
      <description>&lt;P&gt;No, Splunk has two kinds of forwarders, &lt;STRONG&gt;Universal&lt;/STRONG&gt; and &lt;STRONG&gt;Heavy&lt;/STRONG&gt;.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Universal Forwarder is meant to be lightweight and sends data to heavy forwarders/Splunk Enterprise instances without parsing.&lt;/LI&gt;
&lt;LI&gt;Heavy Forwarder is another name for a fully Splunk Enterprise instance. As such, it can do all kinds of parsing and filtering it needs to do.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;In that case, why not use Heavy Forwarders everywhere? The reason is &lt;STRONG&gt;resource footprint&lt;/STRONG&gt;. When you run tens of thousands of servers and VMs (or millions of containers, if you are using Docker, Kubernetes and such), resource footprint will start to matter. For example, if you have 20,000 VMs and there's 50MB difference in memory usage between heavy and light log collectors per instance, you are talking about 1TB of difference in RAM usage. &lt;STRONG&gt;That's anywhere between 20-50k of hardware cost, virtual or physical.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If you are looking to get the filtering/parsing capabilities of Splunk Heavy Forwarder with the resource footpring of Universal Forwarder, and you want to send data to Kafka, Hadoop, Amazon S3 and pretty much any other backend systems, you might want to look at &lt;A href="https://fluentd.treasuredata.com/splunk-optimize/"&gt;Fluentd Enterprise&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 23:13:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-a-Universal-forwarder-filter-lines-from-log/m-p/226276#M44217</guid>
      <dc:creator>kiyototamura</dc:creator>
      <dc:date>2017-06-20T23:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can a Universal forwarder filter lines from log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-a-Universal-forwarder-filter-lines-from-log/m-p/226277#M44218</link>
      <description>&lt;P&gt;You can write &lt;CODE&gt;props.conf&lt;/CODE&gt; and &lt;CODE&gt;transforms.conf&lt;/CODE&gt; in &lt;CODE&gt;/opt/splunk/etc/deployment-apps/_server_app_&amp;lt;server_class&amp;gt;/local&lt;/CODE&gt; (alongside &lt;CODE&gt;inputs.conf&lt;/CODE&gt;), making sure the &lt;CODE&gt;props.conf&lt;/CODE&gt; &lt;CODE&gt;[&amp;lt;sourcetype&amp;gt;]&lt;/CODE&gt; and &lt;CODE&gt;[source::&amp;lt;source&amp;gt;]&lt;/CODE&gt; stanzas specify &lt;CODE&gt;force_local_processing = true&lt;/CODE&gt;. When ready, issue the command line &lt;CODE&gt;splunk reload deploy-server&lt;/CODE&gt; to deploy these to the forwarders and they'll do the indexing (and accompanying &lt;CODE&gt;SEDCMD&lt;/CODE&gt; and &lt;CODE&gt;TRANSFORMS&lt;/CODE&gt;) instead of the indexer. See &lt;A href="https://answers.splunk.com/answers/615924/"&gt;https://answers.splunk.com/answers/615924/&lt;/A&gt; for a detailed example.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 16:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-a-Universal-forwarder-filter-lines-from-log/m-p/226277#M44218</guid>
      <dc:creator>DUThibault</dc:creator>
      <dc:date>2018-02-07T16:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can a Universal forwarder filter lines from log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-a-Universal-forwarder-filter-lines-from-log/m-p/226278#M44219</link>
      <description>&lt;P&gt;If i deploy props.conf and transforms.conf on an indexer and my forwarder is not a heavy one, will this setup work?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 09:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-a-Universal-forwarder-filter-lines-from-log/m-p/226278#M44219</guid>
      <dc:creator>sarahafrin</dc:creator>
      <dc:date>2018-08-03T09:44:36Z</dc:date>
    </item>
  </channel>
</rss>

