<?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 How to filter logs from the source with a universal forwarder? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375562#M110357</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have UFs on a few ec2 aws instances, reading logs from /temp.&lt;/P&gt;

&lt;P&gt;I want to regex and only send logs containing ERROR and WARN on to the HF and then on to the indexers.&lt;/P&gt;

&lt;P&gt;I want to the filter to occur closest to the source to reduce the amount of data being sent.&lt;/P&gt;

&lt;P&gt;Is it possible to regex in the inputs.conf of the UF?  If so please explain.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 04 May 2018 15:45:31 GMT</pubDate>
    <dc:creator>Log_wrangler</dc:creator>
    <dc:date>2018-05-04T15:45:31Z</dc:date>
    <item>
      <title>How to filter logs from the source with a universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375562#M110357</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have UFs on a few ec2 aws instances, reading logs from /temp.&lt;/P&gt;

&lt;P&gt;I want to regex and only send logs containing ERROR and WARN on to the HF and then on to the indexers.&lt;/P&gt;

&lt;P&gt;I want to the filter to occur closest to the source to reduce the amount of data being sent.&lt;/P&gt;

&lt;P&gt;Is it possible to regex in the inputs.conf of the UF?  If so please explain.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 15:45:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375562#M110357</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-05-04T15:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter logs from the source with a universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375563#M110358</link>
      <description>&lt;P&gt;Hey, the UF has no real concept of lines, or events, it just see's blocks of data and sends that to the indexers for processing.&lt;BR /&gt;
It's therefore not possible to regex-filter on the inputs (with a few rare exemptions, for example on Windows event logs).&lt;BR /&gt;
You'll either have to built a scripted input that reads the files and filters them for you, or install an HF, or just send the logs and have the first HF/indexer they reach do the filtering.&lt;/P&gt;

&lt;P&gt;Hope that helps - if it does I'd be happy if you would upvote/accept this answer, so others could profit from it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 17:22:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375563#M110358</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-04T17:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter logs from the source with a universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375564#M110359</link>
      <description>&lt;P&gt;Thanks for confirming, I was pretty sure I would need to use the HF to regex and send, just wanted to make sure.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 17:26:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375564#M110359</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-05-04T17:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter logs from the source with a universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375565#M110360</link>
      <description>&lt;P&gt;Be aware that data pre-processed by an HF is much larger on the network than what an UF sends. You might add complexity without reducing the data stream, plus you have to do all the parsing work on the HF then &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 17:35:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375565#M110360</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-04T17:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter logs from the source with a universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375566#M110361</link>
      <description>&lt;P&gt;yes that is a good point.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 19:54:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375566#M110361</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-05-04T19:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter logs from the source with a universal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375567#M110362</link>
      <description>&lt;P&gt;What is generating those logs? Any chance you can have that write error/warn events to a separate file?&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 06:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-logs-from-the-source-with-a-universal-forwarder/m-p/375567#M110362</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-07T06:31:01Z</dc:date>
    </item>
  </channel>
</rss>

