<?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: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402512#M168717</link>
    <description>&lt;P&gt;No SPL will help you find what is not indexed.  If you need something other than &lt;CODE&gt;instance=_Total&lt;/CODE&gt; then you should take steps to get it.&lt;/P&gt;

&lt;P&gt;Based on what you have, you may get results with this query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype="Perfmon:CPU" instance=_Total | stats avg(Value) by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 25 Jun 2018 16:19:11 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2018-06-25T16:19:11Z</dc:date>
    <item>
      <title>Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402509#M168714</link>
      <description>&lt;P&gt;Logs i am receiving from the Windows machine are like below: (Getting just the "instance=_Total" logs)&lt;/P&gt;

&lt;P&gt;02/09/2018 23:07:04.086 +1000&lt;BR /&gt;
collection=CPUTime&lt;BR /&gt;
object=Processor&lt;BR /&gt;
counter="% User Time"&lt;BR /&gt;
instance=_Total&lt;BR /&gt;
Value=1.8358905012031694&lt;/P&gt;

&lt;P&gt;Please help me write a query to address the issue ASAP.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jun 2018 13:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402509#M168714</guid>
      <dc:creator>dnvs007</dc:creator>
      <dc:date>2018-06-24T13:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402510#M168715</link>
      <description>&lt;P&gt;What have you tried so far and what results did you get?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 01:34:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402510#M168715</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-06-25T01:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402511#M168716</link>
      <description>&lt;P&gt;Hello there!&lt;/P&gt;

&lt;P&gt;Tried below and variations of below:&lt;BR /&gt;&lt;BR /&gt;
earliest=-15m sourcetype="Perfmon:CPU"  counter="% Processor Time"   | where (instance!="Idle" AND instance!="System") | stats avg(Value) by host,instance&lt;/P&gt;

&lt;P&gt;even though does not exactly meet my requirement.&lt;/P&gt;

&lt;P&gt;Nothing works because, i am getting logs only of "instance=_Total"&lt;/P&gt;

&lt;P&gt;Please let me know if you need more details.&lt;/P&gt;

&lt;P&gt;Thanks a ton! Greatly appreciate a quick response.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 05:32:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402511#M168716</guid>
      <dc:creator>dnvs007</dc:creator>
      <dc:date>2018-06-25T05:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402512#M168717</link>
      <description>&lt;P&gt;No SPL will help you find what is not indexed.  If you need something other than &lt;CODE&gt;instance=_Total&lt;/CODE&gt; then you should take steps to get it.&lt;/P&gt;

&lt;P&gt;Based on what you have, you may get results with this query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype="Perfmon:CPU" instance=_Total | stats avg(Value) by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Jun 2018 16:19:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402512#M168717</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-06-25T16:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402513#M168718</link>
      <description>&lt;P&gt;Thank you Rich Galloway! Sorry for the late response...&lt;/P&gt;

&lt;P&gt;I got the processes for the Windows servers indexed. Could you please help me merge a query for Linux with Windows ?&lt;/P&gt;

&lt;P&gt;The query i use is as below: &lt;BR /&gt;
index=os sourcetype=foo OR sourcetype=coo host=$hostname$ | multikv fields pctCPU COMMAND | search host=$hostname$ COMMAND="splunk*" | timechart span=15m max(pctCPU) by host | sort _time&lt;/P&gt;

&lt;P&gt;The indexed fields for windows is: PercentTime for pctCPU and Name for Command.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 06:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402513#M168718</guid>
      <dc:creator>dnvs007</dc:creator>
      <dc:date>2018-07-02T06:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402514#M168719</link>
      <description>&lt;P&gt;To add on i will need the graph to either show max values for Linux or for windows at a time in a consolidated query&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 07:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402514#M168719</guid>
      <dc:creator>dnvs007</dc:creator>
      <dc:date>2018-07-02T07:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402515#M168720</link>
      <description>&lt;P&gt;Came up with this query:&lt;/P&gt;

&lt;P&gt;index=os sourcetype=foo OR sourcetype=coo host=$hostname$ | multikv fields pctCPU COMMAND PercentProcessorTime Name | multisearch [ search host=$hostname$ COMMAND="splunk*"] [search host=$hostname$ Name="splunk*" | eval pctCPU="PercentProcessorTime"]  | timechart span=15m max(pctCPU) by host | sort _time&lt;/P&gt;

&lt;P&gt;Could someone please help in letting me know if this is the right query to get results as i need it to be?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402515#M168720</guid>
      <dc:creator>dnvs007</dc:creator>
      <dc:date>2020-09-29T20:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402516#M168721</link>
      <description>&lt;P&gt;index=os  sourcetype=foo OR sourcetype=coo host=$hostname$  | multikv fields pctCPU COMMAND PercentProcessorTime Name |eval pctCPU="PercentProcessorTime" |  bucket span=1d _time | stats avg(Value) as pctCPU by _time host | where pctCPU&amp;gt;75.0| timechart span=1d  avg(avgcpu) as "CPU Processor Time" by host limit=0 &lt;/P&gt;

&lt;P&gt;try this and let me know...&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 11:56:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402516#M168721</guid>
      <dc:creator>manish_singh_77</dc:creator>
      <dc:date>2018-07-02T11:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402517#M168722</link>
      <description>&lt;P&gt;Thanks Manish.. Will definitely try and get back... Also just to clarify, will the multisearch usage not work? &lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:27:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402517#M168722</guid>
      <dc:creator>dnvs007</dc:creator>
      <dc:date>2018-07-02T14:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402518#M168723</link>
      <description>&lt;P&gt;It is not required..&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 05:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402518#M168723</guid>
      <dc:creator>manish_singh_77</dc:creator>
      <dc:date>2018-07-03T05:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402519#M168724</link>
      <description>&lt;P&gt;Thanks again Manish! All i want from the query is for it to display on my dashboard the usage of Splunk resource utilization of the CPU(splunkd) on each server(Windows/Linux) in just one query... &lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 05:44:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402519#M168724</guid>
      <dc:creator>dnvs007</dc:creator>
      <dc:date>2018-07-03T05:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402520#M168725</link>
      <description>&lt;P&gt;Hi Manish,&lt;/P&gt;

&lt;P&gt;That did not work... maybe i should have explained better..&lt;/P&gt;

&lt;P&gt;I have multiple Linux hosts and Multiple Windows hosts.. &lt;/P&gt;

&lt;P&gt;Linux hosts come with index=os and fields pctCPU and COMMAND&lt;/P&gt;

&lt;P&gt;However, windows hosts come with fields PercentProcessorTime and Name(which has splunkd info)&lt;/P&gt;

&lt;P&gt;i have tokens created for all these hosts as you already know by "$hostname$&lt;/P&gt;

&lt;P&gt;I now need a query which will show how much CPU Splunk is utilizing on these servers and display a graph on my dashboard.&lt;/P&gt;

&lt;P&gt;Please help. Quick help much appreciated...&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 07:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402520#M168725</guid>
      <dc:creator>dnvs007</dc:creator>
      <dc:date>2018-07-04T07:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402521#M168726</link>
      <description>&lt;P&gt;To Add i am using the query: &lt;BR /&gt;
index=os sourcetype=foo OR sourcetype=coo host=$hostname$ | multikv fields pctCPU COMMAND PercentProcessorTime Name | multisearch [ search host=$hostname$ COMMAND="splunk*"] [search host=$hostname$ Name="splunk*" | eval pctCPU="PercentProcessorTime"] | timechart span=15m max(pctCPU) by host | sort _time&lt;/P&gt;

&lt;P&gt;As posted earlier, gives me results for Linux hosts but not for Windows hosts.&lt;/P&gt;

&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:19:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402521#M168726</guid>
      <dc:creator>dnvs007</dc:creator>
      <dc:date>2020-09-29T20:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402522#M168727</link>
      <description>&lt;P&gt;what information you have in the below fields, could you please share..&lt;/P&gt;

&lt;P&gt;pctCPU &lt;BR /&gt;
COMMAND &lt;BR /&gt;
PercentProcessorTime &lt;BR /&gt;
Name &lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 07:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402522#M168727</guid>
      <dc:creator>manish_singh_77</dc:creator>
      <dc:date>2018-07-04T07:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in writing a query in Splunk to display the CPU Utilization of the Splunk forwarder (Universal) resources/process running on a Windows Machine</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402523#M168728</link>
      <description>&lt;P&gt;Hi dnvs007,&lt;/P&gt;

&lt;P&gt;Please try the below query and let me know if it works or not. Since we have the same index so we can use this search query..&lt;/P&gt;

&lt;P&gt;index=os| search COMMAND="splunk*" OR  process_name="splunk*" | eval CPU_Percent=coalesce(PercentProcessorTime,pctCPU) | timechart span=15m max(CPU_Percent) by host useother=f | sort _time&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:19:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-writing-a-query-in-Splunk-to-display-the-CPU/m-p/402523#M168728</guid>
      <dc:creator>manish_singh_77</dc:creator>
      <dc:date>2020-09-29T20:19:45Z</dc:date>
    </item>
  </channel>
</rss>

