<?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: How do I subtotal processor utilization? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280051#M190499</link>
    <description>&lt;P&gt;It's not very exciting (one row per pseudo-event):&lt;/P&gt;

&lt;P&gt;_time,host,itemKey="system.cpu.util[user_utilization,#socket,#core,]",value=int&lt;BR /&gt;
....&lt;BR /&gt;
_time,hostN,itemKey="system.cpu.util[user_utilization,#socket,#core,]",value=int&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 09:25:45 GMT</pubDate>
    <dc:creator>NickJLange</dc:creator>
    <dc:date>2020-09-29T09:25:45Z</dc:date>
    <item>
      <title>How do I subtotal processor utilization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280047#M190495</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Disclaimer&lt;/STRONG&gt;: I'm not saying this particular example  is useful analysis - I'm just not sure how to think about solving a  problem like this in Splunk properly.&lt;/P&gt;

&lt;P&gt;I have thousands of events of Zabbix Data where socket-wide data points are normalized into individual events. i.e. system.cpu.util[socket,core,type] across heterogeneous hardware configurations (i.e. # of sockets or # of cores are different).&lt;BR /&gt;
I want to understand the distribution of the load across a socket by machine modeltype to ensure it matches up to temperature readings - and then flag  outliers (either on temperature or idle cores).&lt;/P&gt;

&lt;P&gt;I've seen tricks around extracting the itemKey into named Variables which I think works because the timestamp is exactly the same.... but how do you run stats on variables that might not exist? (i.e. socket 4 or core 20?)&lt;/P&gt;

&lt;P&gt;Does any of this make sense?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2016 16:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280047#M190495</guid>
      <dc:creator>NickJLange</dc:creator>
      <dc:date>2016-04-10T16:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subtotal processor utilization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280048#M190496</link>
      <description>&lt;P&gt;Is list of possible socket/core fixed?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 15:20:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280048#M190496</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-04-11T15:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subtotal processor utilization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280049#M190497</link>
      <description>&lt;P&gt;Do provide some sample data.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 21:39:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280049#M190497</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-04-11T21:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subtotal processor utilization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280050#M190498</link>
      <description>&lt;P&gt;It is  hard to predict the socket/core count... but it is a finite set.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2016 17:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280050#M190498</guid>
      <dc:creator>NickJLange</dc:creator>
      <dc:date>2016-04-16T17:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subtotal processor utilization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280051#M190499</link>
      <description>&lt;P&gt;It's not very exciting (one row per pseudo-event):&lt;/P&gt;

&lt;P&gt;_time,host,itemKey="system.cpu.util[user_utilization,#socket,#core,]",value=int&lt;BR /&gt;
....&lt;BR /&gt;
_time,hostN,itemKey="system.cpu.util[user_utilization,#socket,#core,]",value=int&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:25:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280051#M190499</guid>
      <dc:creator>NickJLange</dc:creator>
      <dc:date>2020-09-29T09:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subtotal processor utilization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280052#M190500</link>
      <description>&lt;P&gt;Currently, the query uses rex to extract the #socket/#core are extracted to new variables via Rex...&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 12:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280052#M190500</guid>
      <dc:creator>NickJLange</dc:creator>
      <dc:date>2016-04-18T12:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subtotal processor utilization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280053#M190501</link>
      <description>&lt;P&gt;What will the field value contains? &lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:51:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280053#M190501</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-04-18T13:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subtotal processor utilization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280054#M190502</link>
      <description>&lt;P&gt;an integer value from 1- 100. representing utilization ... the equiv of /proc/stat&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 15:09:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280054#M190502</guid>
      <dc:creator>NickJLange</dc:creator>
      <dc:date>2016-05-06T15:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subtotal processor utilization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280055#M190503</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;  ... host=hostname |eval socket=if(isnull(socket),"null",socket) |  timechart avg(value) max(value) by socket
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;AND&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  ... host=hostname | eval core=if(isnull(core),"null",core)| timechart avg(value) max(value) by core
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should be fine for a host by host basis.  Both would work well on a dashboard with a drop down list to select the hostname etc.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... |eval socket=if(isnull(socket),"null",socket) | eval core=if(isnull(core),"null",core)| stats avg(value) max(value) by host core socket
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above should be fine for an analyst  to select specific time ranges with time picker and see if activity spikes occured, etc.&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2016 00:56:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280055#M190503</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-07T00:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subtotal processor utilization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280056#M190504</link>
      <description>&lt;P&gt;Thank you for the helpful suggestion. I'm looking for more aggregate trends across a class of hosts with different underlying hardware models - which sort of precludes individual host analysis with eyeballs...&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2016 15:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-subtotal-processor-utilization/m-p/280056#M190504</guid>
      <dc:creator>NickJLange</dc:creator>
      <dc:date>2016-05-08T15:18:32Z</dc:date>
    </item>
  </channel>
</rss>

