<?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 Is it possible to report on a server's CPU, network, and memory utilization in Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-report-on-a-server-s-CPU-network-and-memory/m-p/249718#M48062</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have been looking at network tools such as PTRG, Zabbix, etc. to do weekly reports on Windows servers and a few in house Apps. None of them can do what I want without some heavy customizations.&lt;/P&gt;

&lt;P&gt;I found Splunk by chance. I have already installed Splunk Light and have couple Windows servers forward Application and System Events as well as text logs from our Apps. Already I can I see the possibilities. &lt;/P&gt;

&lt;P&gt;I am wondering if anyone can provide me with some answers:&lt;/P&gt;

&lt;P&gt;As mentioned before, the goal right now is to do weekly reporting and not necessarily active monitoring. &lt;/P&gt;

&lt;P&gt;What I want to report on:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;When a server's CPU usage goes for over 80% for more than 20 seconds record that event, adding the top 5 processes using the most CPU at that time period. Is this possible? I understand that a query might return perfmon counters that can be filtered with the above conditions, but I am not sure if it can include the top processes. Can this be offloaded to a powershell script and append it to the report?&lt;/LI&gt;
&lt;LI&gt;Same questions but for Network and Memory utilization. &lt;/LI&gt;
&lt;LI&gt;As mentioned before, I added a custom log file into the universal forwarder. This log file is regularly rolled over. The file name to be monitored will always be "file.log", after it gets to a certain size it will be backed up and renamed to file.log.1. My question: does Splunk understand when the file it's monitoring is being moved and then recreated, is there a chance of missing new data (lines) during roll overs?&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2016 13:27:09 GMT</pubDate>
    <dc:creator>wellhung</dc:creator>
    <dc:date>2016-07-08T13:27:09Z</dc:date>
    <item>
      <title>Is it possible to report on a server's CPU, network, and memory utilization in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-report-on-a-server-s-CPU-network-and-memory/m-p/249718#M48062</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have been looking at network tools such as PTRG, Zabbix, etc. to do weekly reports on Windows servers and a few in house Apps. None of them can do what I want without some heavy customizations.&lt;/P&gt;

&lt;P&gt;I found Splunk by chance. I have already installed Splunk Light and have couple Windows servers forward Application and System Events as well as text logs from our Apps. Already I can I see the possibilities. &lt;/P&gt;

&lt;P&gt;I am wondering if anyone can provide me with some answers:&lt;/P&gt;

&lt;P&gt;As mentioned before, the goal right now is to do weekly reporting and not necessarily active monitoring. &lt;/P&gt;

&lt;P&gt;What I want to report on:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;When a server's CPU usage goes for over 80% for more than 20 seconds record that event, adding the top 5 processes using the most CPU at that time period. Is this possible? I understand that a query might return perfmon counters that can be filtered with the above conditions, but I am not sure if it can include the top processes. Can this be offloaded to a powershell script and append it to the report?&lt;/LI&gt;
&lt;LI&gt;Same questions but for Network and Memory utilization. &lt;/LI&gt;
&lt;LI&gt;As mentioned before, I added a custom log file into the universal forwarder. This log file is regularly rolled over. The file name to be monitored will always be "file.log", after it gets to a certain size it will be backed up and renamed to file.log.1. My question: does Splunk understand when the file it's monitoring is being moved and then recreated, is there a chance of missing new data (lines) during roll overs?&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 13:27:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-report-on-a-server-s-CPU-network-and-memory/m-p/249718#M48062</guid>
      <dc:creator>wellhung</dc:creator>
      <dc:date>2016-07-08T13:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to report on a server's CPU, network, and memory utilization in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-report-on-a-server-s-CPU-network-and-memory/m-p/249719#M48063</link>
      <description>&lt;P&gt;These online docs should help answer your questions. The short answer is yes, Splunk can handle the scenarios you describe. Splunk has a very robust list of SPL commands to transforms timeseries data into meaning/actionable reports/dashboards.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Commandsbycategory"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Commandsbycategory&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This link explains how Splunk handles log rotation &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Howlogfilerotationishandled"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Howlogfilerotationishandled&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 17:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-report-on-a-server-s-CPU-network-and-memory/m-p/249719#M48063</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-08T17:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to report on a server's CPU, network, and memory utilization in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-report-on-a-server-s-CPU-network-and-memory/m-p/249720#M48064</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have this: : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="Perfmon:CPU Load" counter="% Processor Time" earliest="-7d@d"| bucket _time span=20s | stats avg(Value) as avgCPU by _time | where avgCPU &amp;gt;80
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Seems to work, had to lower the avgCPU to test.&lt;/P&gt;

&lt;P&gt;Reading your link though I have yet to find a way to include the top processes whenever the CPU goes above the threshold. I don't think perfmon keeps that data. &lt;/P&gt;

&lt;P&gt;I was hoping the Universal Forwarder, seeing it had the option to monitor CPU on setup (I suppose using Perfmon...), maybe has the ability to run scripts on a threshold and append the output of the scripts into the events sent to Splunk.&lt;/P&gt;

&lt;P&gt;I mean it is a lot of documentation, and I was admittedly skimming based on the names of those commands . Did I miss anything? Can I get some direction. &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 19:10:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-report-on-a-server-s-CPU-network-and-memory/m-p/249720#M48064</guid>
      <dc:creator>wellhung</dc:creator>
      <dc:date>2016-07-08T19:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to report on a server's CPU, network, and memory utilization in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-report-on-a-server-s-CPU-network-and-memory/m-p/249721#M48065</link>
      <description>&lt;P&gt;See if this helps.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://blogs.splunk.com/2013/12/09/monitor-processes-per-user-on-microsoft-remote-desktop-services-session-host/" target="test_blank"&gt;http://blogs.splunk.com/2013/12/09/monitor-processes-per-user-on-microsoft-remote-desktop-services-session-host/&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Jul 2016 20:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-report-on-a-server-s-CPU-network-and-memory/m-p/249721#M48065</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-08T20:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to report on a server's CPU, network, and memory utilization in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-report-on-a-server-s-CPU-network-and-memory/m-p/249722#M48066</link>
      <description>&lt;P&gt;That looks about right but I can't seem to make it work.&lt;/P&gt;

&lt;P&gt;On each servers's universal forwarder I added this to \etc\system\local\wmi.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WMI:SessionProcess]
interval = 10
disabled = 0
index = perfmon_index
wql = Select ProcessId, SessionId From Win32_Process
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And to \etc\system\local\inputs conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[perfmon://Process]
interval = 10
object = Process
counters = % Processor Time; ID Process; Working Set - Private; IO Read Operations/sec; IO Write Operations/sec
instances = *
index= perfmon_index
disabled = 0
mode = multikv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And restarted the UniversalForwarder service. It doesn't seem to forward any processes.&lt;/P&gt;

&lt;P&gt;Also in the samples inside the default wmi.conf and index.conf, the index is usually "perfmon" and not "perfmon_index". Which one should it be?&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 14:54:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-report-on-a-server-s-CPU-network-and-memory/m-p/249722#M48066</guid>
      <dc:creator>wellhung</dc:creator>
      <dc:date>2016-07-11T14:54:11Z</dc:date>
    </item>
  </channel>
</rss>

