<?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: summing two event counts by source in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/summing-two-event-counts-by-source/m-p/374278#M110014</link>
    <description>&lt;P&gt;I think what you are looking for is &lt;BR /&gt;
    | stats min(events) as min_events max(events) as max_events by src&lt;BR /&gt;
    | eval diff = max_events - min_events &lt;/P&gt;

&lt;P&gt;Hope this helps&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:05:56 GMT</pubDate>
    <dc:creator>aholzer</dc:creator>
    <dc:date>2020-09-29T16:05:56Z</dc:date>
    <item>
      <title>summing two event counts by source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/summing-two-event-counts-by-source/m-p/374277#M110013</link>
      <description>&lt;P&gt;so, I am trying to parse out syslog stats data, trying to get a velocity of the events to figure out which log source is spiking when backlogs occur.&lt;/P&gt;

&lt;P&gt;events: the count of events for a particular source type&lt;BR /&gt;
src: the individual device sending logs to the syslog server.&lt;/P&gt;

&lt;P&gt;as syslog stats don't reset until syslog is hup'd or otherwise restarted taking the list of events isn't specifically helpful.&lt;/P&gt;

&lt;P&gt;So what I'm trying to figure out is how to get a velocity of trying to get something like: stats min(events, by source) and compare it to a stats max(events) by src.  However I haven't been able to combine this properly.&lt;/P&gt;

&lt;P&gt;Output would preferably be a table that has (src, maxevents, minevents, diff)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:05:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/summing-two-event-counts-by-source/m-p/374277#M110013</guid>
      <dc:creator>umplebyj</dc:creator>
      <dc:date>2017-10-04T17:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: summing two event counts by source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/summing-two-event-counts-by-source/m-p/374278#M110014</link>
      <description>&lt;P&gt;I think what you are looking for is &lt;BR /&gt;
    | stats min(events) as min_events max(events) as max_events by src&lt;BR /&gt;
    | eval diff = max_events - min_events &lt;/P&gt;

&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:05:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/summing-two-event-counts-by-source/m-p/374278#M110014</guid>
      <dc:creator>aholzer</dc:creator>
      <dc:date>2020-09-29T16:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: summing two event counts by source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/summing-two-event-counts-by-source/m-p/374279#M110015</link>
      <description>&lt;P&gt;Could have sworn I tried something just like this and it somehow took the max of all sources and min of all sources (even though I through in the by source field)&lt;/P&gt;

&lt;P&gt;Anyways, thanks this worked.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 18:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/summing-two-event-counts-by-source/m-p/374279#M110015</guid>
      <dc:creator>umplebyj</dc:creator>
      <dc:date>2017-10-04T18:36:52Z</dc:date>
    </item>
  </channel>
</rss>

