<?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: How do I count the number of receiving events per univearsal forwarder? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-count-the-number-of-receiving-events-per-univearsal/m-p/345311#M6583</link>
    <description>&lt;P&gt;event per second&lt;/P&gt;</description>
    <pubDate>Tue, 08 Aug 2017 11:56:52 GMT</pubDate>
    <dc:creator>3no</dc:creator>
    <dc:date>2017-08-08T11:56:52Z</dc:date>
    <item>
      <title>How do I count the number of receiving events per univearsal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-count-the-number-of-receiving-events-per-univearsal/m-p/345308#M6580</link>
      <description>&lt;P&gt;one day. Some of my universal forwarder have some problems.It sends a lot of duplicate events,On the server, the nginx_access.log file has 20000 logs,But in the indexer, but has 15 million log,The same log even repeated tens of thousands of times.Finally, I think it is the reason why the UFis configured with the &lt;CODE&gt;useACK=true&lt;/CODE&gt; parameter.This caused the entire network congestion phenomenon.&lt;/P&gt;

&lt;P&gt;So now I want to create an alert to monitor whether the UF repeatedly sends the log.&lt;/P&gt;

&lt;P&gt;In the beginning, I was index-based to determine whether the number of events in the previous hour was at least 5 times greater than or equal to the average,If it is equal to or greater than 5 times, I think the log growth rate is abnormal.But the index too much, I think this method is not perfect&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=test earliest=-4h latest=now|stats count by sourcetype | eval avg=(count/4)|rename count as 4h|appendcols [search index=test earliest=-1h latest=now|stats count by sourcetype]|eval result=if(count/avg&amp;gt;=5,"Incremental anomaly","OK")|where result!=OK|table 4h avg  count result&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I think we should calculate the number of events received by the UF,For example: UF average number of events received is 20000, if the previous hour to receive the number is 1500000, I think the incident may be repeated. &lt;/P&gt;

&lt;P&gt;So the question: how do I count the number of each UF, how should I write a search statement?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 12:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-count-the-number-of-receiving-events-per-univearsal/m-p/345308#M6580</guid>
      <dc:creator>xsstest</dc:creator>
      <dc:date>2017-08-02T12:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I count the number of receiving events per univearsal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-count-the-number-of-receiving-events-per-univearsal/m-p/345309#M6581</link>
      <description>&lt;P&gt;Is this what you're looking for ?  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" source =/apps/splunkforwarder/var/log/splunk/metrics.log group=per_host_thruput | timechart span=4h avg(eps) by series
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Aug 2017 13:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-count-the-number-of-receiving-events-per-univearsal/m-p/345309#M6581</guid>
      <dc:creator>3no</dc:creator>
      <dc:date>2017-08-02T13:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I count the number of receiving events per univearsal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-count-the-number-of-receiving-events-per-univearsal/m-p/345310#M6582</link>
      <description>&lt;P&gt;what's is eps?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 11:35:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-count-the-number-of-receiving-events-per-univearsal/m-p/345310#M6582</guid>
      <dc:creator>xsstest</dc:creator>
      <dc:date>2017-08-08T11:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I count the number of receiving events per univearsal forwarder?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-count-the-number-of-receiving-events-per-univearsal/m-p/345311#M6583</link>
      <description>&lt;P&gt;event per second&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 11:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-count-the-number-of-receiving-events-per-univearsal/m-p/345311#M6583</guid>
      <dc:creator>3no</dc:creator>
      <dc:date>2017-08-08T11:56:52Z</dc:date>
    </item>
  </channel>
</rss>

