<?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: Splunk App for Unix and Linux: Dashboard statistics table to show processes that consume &amp;gt; 85% of hosts memory and CPU in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Unix-and-Linux-Dashboard-statistics-table-to-show/m-p/290474#M34659</link>
    <description>&lt;P&gt;If you wanted both CPU and Memory you could use a where clause such as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=os host=* source=ps) process_name!="-bash"| stats avg(process_cpu_used_percent) AS avgCPUUsed by process_name, host | where avgCPUUsed &amp;gt; 85 | rename avgCPUUsed AS "% CPU Used by Process"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where is documented &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Where"&gt;here&lt;/A&gt; and stats is documented &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Stats"&gt;here&lt;/A&gt; , you can split your stats command by multiple fields if you wish and you can use boolean logic in your where clause.&lt;BR /&gt;
So you may want to do avgCPUUsed&amp;gt;85 AND avgMemUsed &amp;gt; 85 (or similar)&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 14:08:34 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2017-10-10T14:08:34Z</dc:date>
    <item>
      <title>Splunk App for Unix and Linux: Dashboard statistics table to show processes that consume &gt; 85% of hosts memory and CPU</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Unix-and-Linux-Dashboard-statistics-table-to-show/m-p/290473#M34658</link>
      <description>&lt;P&gt;Dashboard statistics table for Processes that consume &amp;gt; 85% of hosts memory and cpu. &lt;/P&gt;

&lt;P&gt;Ideally I'd like to Show results by process name, host, % memory used, % cpu used to notify which are my top offender process causing host performance issues.  &lt;/P&gt;

&lt;P&gt;Working with this query so far for my linux hosts : &lt;/P&gt;

&lt;P&gt;(index=os host=* source=ps) process_name!="-bash"| stats count as avg(process_cpu_used_percent) by process_name, host | rename "avg(process_cpu_used_percent)" as "% CPU Used by Process"&lt;/P&gt;

&lt;P&gt;working with this saved search so far for windows hosts : &lt;/P&gt;

&lt;P&gt;index=perfmon earliest=-15m source="Perfmon:Process" counter="% Processor Time" (instance!="_Total" AND instance!="Idle" AND instance!="System") | eventstats avg(Value) as AvgValue by host,instance | top instance by AvgValue,host limit=10 showperc=f showcount=f| sort -host,-AvgValue&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:07:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Unix-and-Linux-Dashboard-statistics-table-to-show/m-p/290473#M34658</guid>
      <dc:creator>johnward4</dc:creator>
      <dc:date>2020-09-29T16:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk App for Unix and Linux: Dashboard statistics table to show processes that consume &gt; 85% of hosts memory and CPU</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Unix-and-Linux-Dashboard-statistics-table-to-show/m-p/290474#M34659</link>
      <description>&lt;P&gt;If you wanted both CPU and Memory you could use a where clause such as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=os host=* source=ps) process_name!="-bash"| stats avg(process_cpu_used_percent) AS avgCPUUsed by process_name, host | where avgCPUUsed &amp;gt; 85 | rename avgCPUUsed AS "% CPU Used by Process"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where is documented &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Where"&gt;here&lt;/A&gt; and stats is documented &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Stats"&gt;here&lt;/A&gt; , you can split your stats command by multiple fields if you wish and you can use boolean logic in your where clause.&lt;BR /&gt;
So you may want to do avgCPUUsed&amp;gt;85 AND avgMemUsed &amp;gt; 85 (or similar)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:08:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Unix-and-Linux-Dashboard-statistics-table-to-show/m-p/290474#M34659</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-10-10T14:08:34Z</dc:date>
    </item>
  </channel>
</rss>

