<?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 How to create search for CPU linux to load average? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-search-for-CPU-linux-to-load-average/m-p/590500#M205589</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;I need the help to write splunk query for calculating CPU Linux load average for last 1,5 and 15 mins. I have splunk TA nix app and collected the metrics&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;vmstat_metric.loadAvg1mi&lt;/STRONG&gt;&amp;nbsp;and used this metrics&amp;nbsp; for last 1 min query.&amp;nbsp; But I am not sure how to calculate the load average for last 5 and 15 mins. can anyone&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2022 22:05:49 GMT</pubDate>
    <dc:creator>mm12</dc:creator>
    <dc:date>2022-03-23T22:05:49Z</dc:date>
    <item>
      <title>How to create search for CPU linux to load average?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-search-for-CPU-linux-to-load-average/m-p/590500#M205589</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;I need the help to write splunk query for calculating CPU Linux load average for last 1,5 and 15 mins. I have splunk TA nix app and collected the metrics&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;vmstat_metric.loadAvg1mi&lt;/STRONG&gt;&amp;nbsp;and used this metrics&amp;nbsp; for last 1 min query.&amp;nbsp; But I am not sure how to calculate the load average for last 5 and 15 mins. can anyone&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 22:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-search-for-CPU-linux-to-load-average/m-p/590500#M205589</guid>
      <dc:creator>mm12</dc:creator>
      <dc:date>2022-03-23T22:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create search for CPU linux to load average?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-search-for-CPU-linux-to-load-average/m-p/590611#M205633</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238710"&gt;@mm12&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to categorize your data, using eval, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search
| eval period=case(_time&amp;lt;60,"1",_time&amp;lt;300,"2",_time&amp;lt;1500,"3")
| stats 
 avg(eval(if(_time&amp;lt;60,vmstat_metric.loadAvg,"") AS vmstat_metric.loadAvg_1m 
 avg(eval(if(_time&amp;lt;300,vmstat_metric.loadAvg,"") AS vmstat_metric.loadAvg_5m 
 avg(eval(if(_time&amp;lt;1500,vmstat_metric.loadAvg,"") AS vmstat_metric.loadAvg_15m&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 08:22:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-search-for-CPU-linux-to-load-average/m-p/590611#M205633</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-24T08:22:15Z</dc:date>
    </item>
  </channel>
</rss>

