<?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: Display CPU Utilization per host per time using +Add Inputs from Edit Dashboard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Display-CPU-Utilization-per-host-per-time-using-Add-Inputs-from/m-p/541988#M153500</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228379"&gt;@hishamjan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will need to add a field to your search query to include the selected host from your dropdown.&lt;/P&gt;&lt;P&gt;For example, if the token from the dropdown was named "selected_host" then you would modify the search query for the panel to be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="vmstat" host=$selected_host$
            | dedup host 
 | eval host=upper(host)
            | eval FreeGBs=FreeMBytes/1024, TotalGBs=TotalMBytes/1024, UsedGBs=UsedMBytes/1024
            | table host memFreePct memUsedPct&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you will need to modify the dropdown to assign a value or an "*" (for no selected hosts) to the token "selected_host".&amp;nbsp; the Splunk documentation for&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/Viz/FormEditor" target="_self"&gt; Create and edit forms&lt;/A&gt; would be a great place to review those settings.&lt;/P&gt;&lt;P&gt;One more thing to consider, if you want to view the data over time, then you will probably want to modify the search query for your panel to be populated by a timechart instead of eval/table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="vmstat" host=$selected_host$
| eval host=upper(host)
| eval FreeGBs=FreeMBytes/1024, TotalGBs=TotalMBytes/1024, UsedGBs=UsedMBytes/1024
|timechart avg(memFreePct) as memFreePct, avg(memUsedPct) as memUsedPct by $selected_host$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Mar 2021 14:59:18 GMT</pubDate>
    <dc:creator>jodonald</dc:creator>
    <dc:date>2021-03-02T14:59:18Z</dc:date>
    <item>
      <title>Display CPU Utilization per host per time using +Add Inputs from Edit Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-CPU-Utilization-per-host-per-time-using-Add-Inputs-from/m-p/541915#M153468</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;below is the timechart for my search to display CPU utilization of my forwarders and indexer&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-03-02 at 1.46.20 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13139i8413FFC06D437F7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-03-02 at 1.46.20 PM.png" alt="Screenshot 2021-03-02 at 1.46.20 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using the host &lt;STRONG&gt;dropdown box,&lt;/STRONG&gt; I would like to search for an &lt;EM&gt;individual&lt;/EM&gt; host at a time to display its &lt;STRONG&gt;memFreePct&lt;/STRONG&gt; and &lt;STRONG&gt;memUsedPct&lt;/STRONG&gt; over a specific period of time (using Time dropdown box).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The search query is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="vmstat"
            | dedup host 
 | eval host=upper(host)
            | eval FreeGBs=FreeMBytes/1024, TotalGBs=TotalMBytes/1024, UsedGBs=UsedMBytes/1024
            | table host memFreePct memUsedPct&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can edit this search query to be able to find timechart graph for only &lt;STRONG&gt;one&lt;/STRONG&gt; host at a time using the dropdown box?&lt;/P&gt;&lt;P&gt;The search query in the &lt;STRONG&gt;Host dropdown&lt;/STRONG&gt; box is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=vmstat
| dedup host
|table host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 08:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-CPU-Utilization-per-host-per-time-using-Add-Inputs-from/m-p/541915#M153468</guid>
      <dc:creator>hishamjan</dc:creator>
      <dc:date>2021-03-02T08:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Display CPU Utilization per host per time using +Add Inputs from Edit Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-CPU-Utilization-per-host-per-time-using-Add-Inputs-from/m-p/541988#M153500</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228379"&gt;@hishamjan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will need to add a field to your search query to include the selected host from your dropdown.&lt;/P&gt;&lt;P&gt;For example, if the token from the dropdown was named "selected_host" then you would modify the search query for the panel to be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="vmstat" host=$selected_host$
            | dedup host 
 | eval host=upper(host)
            | eval FreeGBs=FreeMBytes/1024, TotalGBs=TotalMBytes/1024, UsedGBs=UsedMBytes/1024
            | table host memFreePct memUsedPct&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you will need to modify the dropdown to assign a value or an "*" (for no selected hosts) to the token "selected_host".&amp;nbsp; the Splunk documentation for&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/Viz/FormEditor" target="_self"&gt; Create and edit forms&lt;/A&gt; would be a great place to review those settings.&lt;/P&gt;&lt;P&gt;One more thing to consider, if you want to view the data over time, then you will probably want to modify the search query for your panel to be populated by a timechart instead of eval/table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="vmstat" host=$selected_host$
| eval host=upper(host)
| eval FreeGBs=FreeMBytes/1024, TotalGBs=TotalMBytes/1024, UsedGBs=UsedMBytes/1024
|timechart avg(memFreePct) as memFreePct, avg(memUsedPct) as memUsedPct by $selected_host$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 14:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-CPU-Utilization-per-host-per-time-using-Add-Inputs-from/m-p/541988#M153500</guid>
      <dc:creator>jodonald</dc:creator>
      <dc:date>2021-03-02T14:59:18Z</dc:date>
    </item>
  </channel>
</rss>

