<?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 generate a search to check memory, cpu, disk usage for each host? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-check-memory-cpu-disk-usage-for-each/m-p/354648#M104954</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I would like to do  a search against forwarders,  once I found that forwarder is running,  I need to check memory,  cpu, disk usage. Is there a way I can do it?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2017 16:10:21 GMT</pubDate>
    <dc:creator>ananthan123</dc:creator>
    <dc:date>2017-06-15T16:10:21Z</dc:date>
    <item>
      <title>How to generate a search to check memory, cpu, disk usage for each host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-check-memory-cpu-disk-usage-for-each/m-p/354648#M104954</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I would like to do  a search against forwarders,  once I found that forwarder is running,  I need to check memory,  cpu, disk usage. Is there a way I can do it?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 16:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-check-memory-cpu-disk-usage-for-each/m-p/354648#M104954</guid>
      <dc:creator>ananthan123</dc:creator>
      <dc:date>2017-06-15T16:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to check memory, cpu, disk usage for each host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-check-memory-cpu-disk-usage-for-each/m-p/354649#M104955</link>
      <description>&lt;P&gt;This is the search I am using to find the uptime for forwarder.&lt;/P&gt;

&lt;P&gt;index=_internal source=*metrics.log group=tcpin_connections earliest=-2d@d | eval Host=coalesce(hostname, sourcehost)  | eval age = (now() - _time )   | stats min(age) as age, max(_time) as LastTime by Host   | convert ctime(LastTime) as "Last Active On"  | eval Status= case(age &amp;lt; 900,"Running",age &amp;gt; 900,"DOWN")&lt;/P&gt;

&lt;P&gt;Once I found it is running, I need to go through CPU, Memory, Disk usage for each host&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:30:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-check-memory-cpu-disk-usage-for-each/m-p/354649#M104955</guid>
      <dc:creator>ananthan123</dc:creator>
      <dc:date>2020-09-29T14:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to check memory, cpu, disk usage for each host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-check-memory-cpu-disk-usage-for-each/m-p/354650#M104956</link>
      <description>&lt;P&gt;SSL does not include triggered actions.  The easiest is to simply retrieve all information of interest then filter down hosts to meet your criteria, then extract memory, etc. for those hosts&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 18:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-check-memory-cpu-disk-usage-for-each/m-p/354650#M104956</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2017-06-15T18:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to check memory, cpu, disk usage for each host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-check-memory-cpu-disk-usage-for-each/m-p/354651#M104957</link>
      <description>&lt;P&gt;hello there,&lt;BR /&gt;
there are many simpler ways to check if a forwarder is running, here are couple examples from this portal:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/132106/easiest-way-to-detect-if-splunk-forwarder-is-running-on-150-servers.html"&gt;https://answers.splunk.com/answers/132106/easiest-way-to-detect-if-splunk-forwarder-is-running-on-150-servers.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/11269/check-a-forwarder-is-working.html"&gt;https://answers.splunk.com/answers/11269/check-a-forwarder-is-working.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/798/how-do-i-tell-if-a-forwarder-is-down.html"&gt;https://answers.splunk.com/answers/798/how-do-i-tell-if-a-forwarder-is-down.html&lt;/A&gt;&lt;BR /&gt;
Now for the second part of the question, do you collect CPU Memory and Disk usage form each host?&lt;BR /&gt;
Are the hosts linux? windows? both?&lt;BR /&gt;
there are many searches around that use case, here is an example for a (very) simple windows related search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=perfmon  source=Perfmon:CPU OR source=Perfmon:Memory OR source=Perfmon:LogicalDisk
| stats latest(Value) by source counter host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it hepls&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 03:12:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-check-memory-cpu-disk-usage-for-each/m-p/354651#M104957</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-06-25T03:12:02Z</dc:date>
    </item>
  </channel>
</rss>

