<?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: Top 5 UNIX/Linux processes as per CPU in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393725#M740</link>
    <description>&lt;P&gt;Control Shift E will expand macros, as documented &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Usesearchmacros"&gt;here&lt;/A&gt; , in newer Splunk versions&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 23:01:07 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2018-09-27T23:01:07Z</dc:date>
    <item>
      <title>Top 5 UNIX/Linux processes as per CPU</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393721#M736</link>
      <description>&lt;P&gt;I am trying to build a dashboard for listing of 5 top unix processes by CPU by using macro Top_5_CPU_Processes_by_Host(*) as listed in following link:-&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/UnixApp/5.2.4/User/Savedsearches" target="_blank"&gt;https://docs.splunk.com/Documentation/UnixApp/5.2.4/User/Savedsearches&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Can someone please guide me how to use this macro search?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:23:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393721#M736</guid>
      <dc:creator>bsaujla131984</dc:creator>
      <dc:date>2020-09-29T21:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Top 5 UNIX/Linux processes as per CPU</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393722#M737</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/137505"&gt;@bsaujla131984&lt;/a&gt; ,&lt;/P&gt;

&lt;P&gt;You can directly call this macro in your search/dashboard provided the dashboard has access to this macro - in other terms, share this macro with the app where you are creating the dashboard,&lt;/P&gt;

&lt;P&gt;Try executing this macro in your search bar with " `Top_5_CPU_Processes_by_Host(*) ` " . Make sure that you have the backticks (`) while calling the macro&lt;/P&gt;

&lt;P&gt;Alternatively, you can use the search which is used behind this macro&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=top host=* | stats max(pctCPU) as maxCPU by host, COMMAND, _time | sort -maxCPU | dedup 5 host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change the index if you are using other index than &lt;CODE&gt;os&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393722#M737</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-29T21:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Top 5 UNIX/Linux processes as per CPU</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393723#M738</link>
      <description>&lt;P&gt;Thanks Nair for your reply.&lt;/P&gt;

&lt;P&gt;There is not sourcetype=top , so could not get any result.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 03:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393723#M738</guid>
      <dc:creator>bsaujla131984</dc:creator>
      <dc:date>2018-09-27T03:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Top 5 UNIX/Linux processes as per CPU</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393724#M739</link>
      <description>&lt;P&gt;Also , where can we check commands running behind macros?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 03:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393724#M739</guid>
      <dc:creator>bsaujla131984</dc:creator>
      <dc:date>2018-09-27T03:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Top 5 UNIX/Linux processes as per CPU</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393725#M740</link>
      <description>&lt;P&gt;Control Shift E will expand macros, as documented &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Usesearchmacros"&gt;here&lt;/A&gt; , in newer Splunk versions&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 23:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393725#M740</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-09-27T23:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Top 5 UNIX/Linux processes as per CPU</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393726#M741</link>
      <description>&lt;P&gt;@bsaujla131984 ,&lt;/P&gt;

&lt;P&gt;Have you enabled the input for top in your inputs.conf ? &lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 12:37:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393726#M741</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-09-28T12:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Top 5 UNIX/Linux processes as per CPU</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393727#M742</link>
      <description>&lt;P&gt;Hello Ranjith,&lt;/P&gt;

&lt;P&gt;Is there a way I can check commands running behind Macros?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 01:00:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393727#M742</guid>
      <dc:creator>bsaujla131984</dc:creator>
      <dc:date>2018-09-30T01:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Top 5 UNIX/Linux processes as per CPU</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393728#M743</link>
      <description>&lt;P&gt;First make sure you deploy the Splunk Add-on for Unix and Linux on the servers you are trying to monitor (universal forwarders). By doing this, you will be receiving data from these servers as mentioned on the add-on documentation.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/AddOns/released/UnixLinux/About"&gt;http://docs.splunk.com/Documentation/AddOns/released/UnixLinux/About&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This add-on will populate the index and sourcetypes needed so you can run search queries against it to build reports/dashboards, and populate data for the App.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 17:31:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393728#M743</guid>
      <dc:creator>dedwards93</dc:creator>
      <dc:date>2018-09-30T17:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Top 5 UNIX/Linux processes as per CPU</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393729#M744</link>
      <description>&lt;P&gt;Yes, just open the macros.conf from the app's default/local directory and you should see this macro definition&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 16:11:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Top-5-UNIX-Linux-processes-as-per-CPU/m-p/393729#M744</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-10-01T16:11:24Z</dc:date>
    </item>
  </channel>
</rss>

