<?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: calculating average in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/calculating-average/m-p/103767#M26815</link>
    <description>&lt;P&gt;thank you.. works perfect.&lt;/P&gt;

&lt;P&gt;-pmr&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2011 07:03:20 GMT</pubDate>
    <dc:creator>pmr</dc:creator>
    <dc:date>2011-05-20T07:03:20Z</dc:date>
    <item>
      <title>calculating average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculating-average/m-p/103764#M26812</link>
      <description>&lt;P&gt;Need some help on search string to calculate 10 minute average and generate alert.&lt;BR /&gt;
say for example Virtual memory usage 10 minute average &amp;gt; 10000 generate an alert.  How can we calculate 10 minute average ?&lt;BR /&gt;
this would be from a table event so need to use multikv.   sample event below :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;USER               PID   PSR   pctCPU       CPUTIME  pctMEM     RSZ_KB     VSZ_KB   TTY      S       ELAPSED  COMMAND             ARGS
root                 1     1      0.0      00:00:16     0.0        788      10384   ?        S   19-08:11:30  init                [3]
root                 2     1      0.0      00:00:00     0.0          0          0   ?        S   19-08:11:30  [kthreadd]          &amp;lt;noArgs&amp;gt;
root                 3     0      0.0      00:00:00     0.0          0          0   ?        S   19-08:11:30  [migration/0]       &amp;lt;noArgs&amp;gt;
root                 4     0      0.0      00:00:00     0.0          0          0   ?        S   19-08:11:30  [ksoftirqd/0]       &amp;lt;noArgs&amp;gt;
root                 5     0      0.0      00:00:26     0.0          0          0   ?        S   19-08:11:30  [events/0]          &amp;lt;noArgs&amp;gt;
root                 6     0      0.0      00:00:00     0.0          0          0   ?        S   19-08:11:30  [cpuset]            &amp;lt;noArgs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;thanks&lt;BR /&gt;
pmr&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2011 03:20:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculating-average/m-p/103764#M26812</guid>
      <dc:creator>pmr</dc:creator>
      <dc:date>2011-05-18T03:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: calculating average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculating-average/m-p/103765#M26813</link>
      <description>&lt;P&gt;Folks,&lt;BR /&gt;
Any help on this ?&lt;/P&gt;

&lt;P&gt;-pmr&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2011 00:14:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculating-average/m-p/103765#M26813</guid>
      <dc:creator>pmr</dc:creator>
      <dc:date>2011-05-19T00:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: calculating average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculating-average/m-p/103766#M26814</link>
      <description>&lt;P&gt;The sample is ps output. Assuming you get the ps output every minutes or so. Virtual memory usage is VSZ_KB per PID in the event. You can run the following search every 10 minutes and set the alert when there is events more than one;&lt;/P&gt;

&lt;PRE&gt;
sourcetype=ps earliest=-11m@m latest=-1m@m
   | multikv fields VSZ_KB PID
   | chart avg(VSZ_KB) AS AvgSizeKB by PID 
   | where AvgSizeKB &amp;gt; 10000 
   | sort - AvgSizeKB
&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 May 2011 06:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculating-average/m-p/103766#M26814</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2011-05-19T06:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: calculating average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/calculating-average/m-p/103767#M26815</link>
      <description>&lt;P&gt;thank you.. works perfect.&lt;/P&gt;

&lt;P&gt;-pmr&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2011 07:03:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/calculating-average/m-p/103767#M26815</guid>
      <dc:creator>pmr</dc:creator>
      <dc:date>2011-05-20T07:03:20Z</dc:date>
    </item>
  </channel>
</rss>

