<?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: timechart avg vs count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-avg-vs-count/m-p/58144#M14205</link>
    <description>&lt;P&gt;The &lt;CODE&gt;transaction&lt;/CODE&gt; command produces two fields, &lt;CODE&gt;duration&lt;/CODE&gt; and &lt;CODE&gt;eventcount&lt;/CODE&gt;. You could use &lt;CODE&gt;eventcount&lt;/CODE&gt; in your chart to detect spikes, for instance by taking a sum of the total events within the timespan:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="CONTENT_EVENTS" | transaction accountNumber subscriberID maxspan=1m maxpause=30s | timechart span=1m avg(duration),sum(eventcount)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 12 Mar 2011 17:20:10 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2011-03-12T17:20:10Z</dc:date>
    <item>
      <title>timechart avg vs count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-avg-vs-count/m-p/58143#M14204</link>
      <description>&lt;P&gt;I would use the example on &lt;A href="http://www.splunk.com/base/Documentation/latest/AppManagement/Summarizeeventsovertimeusingtimechart" rel="nofollow"&gt;this page&lt;/A&gt; as the base for my question:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="CONTENT_EVENTS" | transaction accountNumber subscriberID maxspan=1m maxpause=30s | timechart span=1m avg(duration)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Averages are great ... but if there is a spike i would like to know the size of the sample the average was taken over.&lt;/P&gt;

&lt;P&gt;So i would like to add to this timechart also the count of the number of transactions in that timeframe.&lt;/P&gt;

&lt;P&gt;Anyone know if this is possible ?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2011 16:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-avg-vs-count/m-p/58143#M14204</guid>
      <dc:creator>bowa</dc:creator>
      <dc:date>2011-03-12T16:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: timechart avg vs count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-avg-vs-count/m-p/58144#M14205</link>
      <description>&lt;P&gt;The &lt;CODE&gt;transaction&lt;/CODE&gt; command produces two fields, &lt;CODE&gt;duration&lt;/CODE&gt; and &lt;CODE&gt;eventcount&lt;/CODE&gt;. You could use &lt;CODE&gt;eventcount&lt;/CODE&gt; in your chart to detect spikes, for instance by taking a sum of the total events within the timespan:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="CONTENT_EVENTS" | transaction accountNumber subscriberID maxspan=1m maxpause=30s | timechart span=1m avg(duration),sum(eventcount)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 12 Mar 2011 17:20:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-avg-vs-count/m-p/58144#M14205</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-03-12T17:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: timechart avg vs count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-avg-vs-count/m-p/58145#M14206</link>
      <description>&lt;P&gt;Thanks a lot ! exactly what i needed&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2011 18:09:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-avg-vs-count/m-p/58145#M14206</guid>
      <dc:creator>bowa</dc:creator>
      <dc:date>2011-03-12T18:09:54Z</dc:date>
    </item>
  </channel>
</rss>

