<?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 CPU by Process in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Timechart-CPU-by-Process/m-p/540920#M10239</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=index sourcetype=cpu AND sourcetype=top host=$host$
| timechart latest(cpu_load_percent) by COMMAND&lt;/LI-CODE&gt;&lt;P&gt;sourcetype=top doesn't have cpu_load_percent.&lt;/P&gt;&lt;P&gt;try &lt;STRONG&gt;coalesce&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 23:15:48 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2021-02-22T23:15:48Z</dc:date>
    <item>
      <title>Timechart CPU by Process</title>
      <link>https://community.splunk.com/t5/Alerting/Timechart-CPU-by-Process/m-p/540588#M10226</link>
      <description>&lt;P&gt;I'm interested in creating an alert scheduled to run every 60 minutes, that will search for hosts which have had &amp;gt; 85% CPU load over a span of 5 minutes. Here's the search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index sourcetype=cpu
| streamstats time_window=5min latest(cpu_load_percent) count by host
| eval cpu_load_percent=if(count&amp;lt;18,null,round(cpu_load_percent, 2))
| where cpu_load_percent&amp;gt;85
| dedup host
| table host, _time, cpu_load_percent&lt;/LI-CODE&gt;&lt;P&gt;From there, I would like a report generated, wherein for each host a timechart is provided for the last 60 minutes, showing CPU %s for each of the processes run on that host. Ideally this will be a line chart, with a line for each of the top 10 CPU-heavy processes. I've tried using&amp;nbsp;&lt;STRONG&gt;| transaction&lt;/STRONG&gt;, and this is what I have so far:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index sourcetype=cpu AND sourcetype=top host=$host$
| timechart latest(cpu_load_percent) by COMMAND&lt;/LI-CODE&gt;&lt;P&gt;I'd really appreciate any guidance on how to implement an alert of this type.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 22:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Timechart-CPU-by-Process/m-p/540588#M10226</guid>
      <dc:creator>mxanareckless</dc:creator>
      <dc:date>2021-02-19T22:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart CPU by Process</title>
      <link>https://community.splunk.com/t5/Alerting/Timechart-CPU-by-Process/m-p/540620#M10227</link>
      <description>&lt;P&gt;I don't know the result of &lt;STRONG&gt;sourcetype=top&lt;/STRONG&gt; at all, so it's hard to say.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 02:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Timechart-CPU-by-Process/m-p/540620#M10227</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-02-20T02:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart CPU by Process</title>
      <link>https://community.splunk.com/t5/Alerting/Timechart-CPU-by-Process/m-p/540884#M10234</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="spk-top-output.PNG" style="width: 821px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13011i440DD91341664ABD/image-size/large?v=v2&amp;amp;px=999" role="button" title="spk-top-output.PNG" alt="spk-top-output.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 17:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Timechart-CPU-by-Process/m-p/540884#M10234</guid>
      <dc:creator>mxanareckless</dc:creator>
      <dc:date>2021-02-22T17:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart CPU by Process</title>
      <link>https://community.splunk.com/t5/Alerting/Timechart-CPU-by-Process/m-p/540920#M10239</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=index sourcetype=cpu AND sourcetype=top host=$host$
| timechart latest(cpu_load_percent) by COMMAND&lt;/LI-CODE&gt;&lt;P&gt;sourcetype=top doesn't have cpu_load_percent.&lt;/P&gt;&lt;P&gt;try &lt;STRONG&gt;coalesce&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 23:15:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Timechart-CPU-by-Process/m-p/540920#M10239</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-02-22T23:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart CPU by Process</title>
      <link>https://community.splunk.com/t5/Alerting/Timechart-CPU-by-Process/m-p/540958#M10241</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be a field alias in recent versions of Splunk_TA_nix. I just verified 8.2.0 and 8.3.0. It's not present in 5.2.4, which is the only other version I have handy.&lt;/P&gt;&lt;P&gt;[top]&lt;BR /&gt;...&lt;BR /&gt;FIELDALIAS-cpu_load_percent = pctCPU as cpu_load_percent&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 04:44:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Timechart-CPU-by-Process/m-p/540958#M10241</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2021-02-23T04:44:43Z</dc:date>
    </item>
  </channel>
</rss>

