<?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: SPL for displaying overview panel in splunk app for infrastructure. in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SPL-for-displaying-overview-panel-in-splunk-app-for/m-p/481835#M59244</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/128477"&gt;@dagarwal_splunk&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;I have been using the mstats command to create metrics dashboards etc but what I cant seem to figure out is how the CPU is calculated. I cant seem to get the same result. I am not sure what metric_name is used to get the required result CPU used %.&lt;/P&gt;

&lt;P&gt;Only metrics are:&lt;/P&gt;

&lt;P&gt;Process.%_Privileged_Time&lt;BR /&gt;
Process.%_Processor_Time&lt;BR /&gt;
Process.%_User_Time&lt;BR /&gt;
Processor.%_C1_Time&lt;BR /&gt;
Processor.%_C2_Time&lt;BR /&gt;
Processor.%_Idle_Time&lt;BR /&gt;
Processor.%_Interrupt_Time&lt;BR /&gt;
Processor.%_Privileged_Time&lt;BR /&gt;
Processor.%_Processor_Time&lt;BR /&gt;
Processor.%_User_Time&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:56:30 GMT</pubDate>
    <dc:creator>nathanluke86</dc:creator>
    <dc:date>2020-09-30T02:56:30Z</dc:date>
    <item>
      <title>SPL for displaying overview panel in splunk app for infrastructure.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SPL-for-displaying-overview-panel-in-splunk-app-for/m-p/481832#M59241</link>
      <description>&lt;P&gt;I'm hoping someone could help.&lt;/P&gt;

&lt;P&gt;I would like to create a dashboard for one of our hosts similar to the Splunk app for infrastructure overview page (as in screenshot below).&lt;/P&gt;

&lt;P&gt;We are indexing as metrics (index=em_metrics) and would like to create the panels shown below.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7939i79B8F6D8E360B192/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:27:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SPL-for-displaying-overview-panel-in-splunk-app-for/m-p/481832#M59241</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2019-11-11T13:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: SPL for displaying overview panel in splunk app for infrastructure.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SPL-for-displaying-overview-panel-in-splunk-app-for/m-p/481833#M59242</link>
      <description>&lt;P&gt;Hi - are you able to find it by looking at the xml for the dashboard in {SplunkMachineName}{SplunkPath}\etc\apps\app(default|local)\ui\views?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 18:11:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SPL-for-displaying-overview-panel-in-splunk-app-for/m-p/481833#M59242</guid>
      <dc:creator>aberkow</dc:creator>
      <dc:date>2019-11-11T18:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: SPL for displaying overview panel in splunk app for infrastructure.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SPL-for-displaying-overview-panel-in-splunk-app-for/m-p/481834#M59243</link>
      <description>&lt;P&gt;I think you are looking for SPLs to use for your dashboard i.e "mstats" command:  &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Mstats" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Mstats&lt;/A&gt;&lt;BR /&gt;
You can use commands like mstats, mcatalog to look into em_metrics  index.&lt;/P&gt;

&lt;P&gt;Sample SPL for your dashboard:&lt;BR /&gt;
| mstats avg(memory.free) WHERE index=em_metrics AND host=xyzz span=1m&lt;/P&gt;

&lt;P&gt;You can split the above search by any dimension. &lt;BR /&gt;
To get the list of dimensions:&lt;BR /&gt;
| mcatalog values(_dims) WHERE index=em_metrics AND host=xyzz&lt;/P&gt;

&lt;P&gt;You can pipe it to timechart to produce a chart: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Timechart" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Timechart&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:55:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SPL-for-displaying-overview-panel-in-splunk-app-for/m-p/481834#M59243</guid>
      <dc:creator>dagarwal_splunk</dc:creator>
      <dc:date>2020-09-30T02:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: SPL for displaying overview panel in splunk app for infrastructure.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SPL-for-displaying-overview-panel-in-splunk-app-for/m-p/481835#M59244</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/128477"&gt;@dagarwal_splunk&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;I have been using the mstats command to create metrics dashboards etc but what I cant seem to figure out is how the CPU is calculated. I cant seem to get the same result. I am not sure what metric_name is used to get the required result CPU used %.&lt;/P&gt;

&lt;P&gt;Only metrics are:&lt;/P&gt;

&lt;P&gt;Process.%_Privileged_Time&lt;BR /&gt;
Process.%_Processor_Time&lt;BR /&gt;
Process.%_User_Time&lt;BR /&gt;
Processor.%_C1_Time&lt;BR /&gt;
Processor.%_C2_Time&lt;BR /&gt;
Processor.%_Idle_Time&lt;BR /&gt;
Processor.%_Interrupt_Time&lt;BR /&gt;
Processor.%_Privileged_Time&lt;BR /&gt;
Processor.%_Processor_Time&lt;BR /&gt;
Processor.%_User_Time&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SPL-for-displaying-overview-panel-in-splunk-app-for/m-p/481835#M59244</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2020-09-30T02:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: SPL for displaying overview panel in splunk app for infrastructure.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SPL-for-displaying-overview-panel-in-splunk-app-for/m-p/481836#M59245</link>
      <description>&lt;P&gt;You should use Processor.%_Processor_Time for Cpu utilization.&lt;BR /&gt;
See this to learn more about this metric: &lt;A href="https://social.technet.microsoft.com/wiki/contents/articles/12984.understanding-processor-processor-time-and-process-processor-time.aspx" target="_blank"&gt;https://social.technet.microsoft.com/wiki/contents/articles/12984.understanding-processor-processor-time-and-process-processor-time.aspx&lt;/A&gt; &lt;BR /&gt;
Processor - % Processor Time is the percentage of elapsed time that the processor spends to execute a non-Idle thread. It is calculated by measuring the percentage of time that the processor spends executing the idle thread and then subtracting that value from 100%. (Each processor has an idle thread that consumes cycles when no other threads are ready to run). This counter is the primary indicator of processor activity, and displays the average percentage of busy time observed during the sample interval. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:55:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SPL-for-displaying-overview-panel-in-splunk-app-for/m-p/481836#M59245</guid>
      <dc:creator>dagarwal_splunk</dc:creator>
      <dc:date>2020-09-30T02:55:28Z</dc:date>
    </item>
  </channel>
</rss>

