<?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 get Server name based dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166978#M10270</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am forwarding a log file with some data in it and using below search string:&lt;BR /&gt;
&lt;CODE&gt;sourcetype=dhap source="/var/log/dhap-log" "WAIT"&lt;/CODE&gt;&lt;BR /&gt;
Once I run this search, under Hosts field I get 2 entries for the servers from where i am getting the results. I want to save this search to a Dashboard panel where it should give me a drop-down menu for the entries from the "host" field.&lt;/P&gt;

&lt;P&gt;Please help me on this.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
    <pubDate>Fri, 01 Aug 2014 09:35:48 GMT</pubDate>
    <dc:creator>digitalrg</dc:creator>
    <dc:date>2014-08-01T09:35:48Z</dc:date>
    <item>
      <title>How to get Server name based dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166978#M10270</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am forwarding a log file with some data in it and using below search string:&lt;BR /&gt;
&lt;CODE&gt;sourcetype=dhap source="/var/log/dhap-log" "WAIT"&lt;/CODE&gt;&lt;BR /&gt;
Once I run this search, under Hosts field I get 2 entries for the servers from where i am getting the results. I want to save this search to a Dashboard panel where it should give me a drop-down menu for the entries from the "host" field.&lt;/P&gt;

&lt;P&gt;Please help me on this.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 09:35:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166978#M10270</guid>
      <dc:creator>digitalrg</dc:creator>
      <dc:date>2014-08-01T09:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Server name based dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166979#M10271</link>
      <description>&lt;P&gt;What version of Splunk do you use?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 12:51:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166979#M10271</guid>
      <dc:creator>tom_frotscher</dc:creator>
      <dc:date>2014-08-01T12:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Server name based dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166980#M10272</link>
      <description>&lt;P&gt;Give this a try. (simple xml form with host dropdown)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Dynamic Host&amp;lt;/label&amp;gt;
  &amp;lt;fieldset autoRun="true" &amp;gt;
      &amp;lt;input type="time" /&amp;gt;
    &amp;lt;input type="dropdown" token="sourcetype"&amp;gt;
      &amp;lt;label&amp;gt;Host&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;populatingSearch fieldForValue="host" fieldForLabel="host"&amp;gt;
        &amp;lt;![CDATA[| metasearch sourcetype=dhap source="/var/log/dhap-log" | stats count by host | table host ]]&amp;gt;
      &amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;event&amp;gt;
      &amp;lt;title&amp;gt;Top 5 source&amp;lt;/title&amp;gt;
      &amp;lt;searchString&amp;gt;sourcetype=dhap source="/var/log/dhap-log" "WAIT" host="$host$" &amp;lt;/searchString&amp;gt;      
      &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
    &amp;lt;/event&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Answer no 2: with 2 dropdown source and sourcetype for base search index=main.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Dynamic Host&amp;lt;/label&amp;gt;
  &amp;lt;fieldset autoRun="true" &amp;gt;
      &amp;lt;input type="time" /&amp;gt;
    &amp;lt;input type="dropdown" token="sourcetype"&amp;gt;
      &amp;lt;label&amp;gt;SourceType&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;populatingSearch fieldForValue="sourcetype" fieldForLabel="sourcetype"&amp;gt;
        &amp;lt;![CDATA[| metasearch index=main | stats count by sourcetype ]]&amp;gt;
      &amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
&amp;lt;input type="dropdown" token="source"&amp;gt;
      &amp;lt;label&amp;gt;Source&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;populatingSearch fieldForValue="source" fieldForLabel="source"&amp;gt;
        &amp;lt;![CDATA[| metasearch index=main | stats count by source ]]&amp;gt;
      &amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;event&amp;gt;
      &amp;lt;title&amp;gt;Top 5 source&amp;lt;/title&amp;gt;
      &amp;lt;searchString&amp;gt;index=main sourcetype="$sourcetype$" source="$source$" | rest of your search &amp;lt;/searchString&amp;gt;      
      &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
    &amp;lt;/event&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Aug 2014 14:16:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166980#M10272</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-01T14:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Server name based dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166981#M10273</link>
      <description>&lt;P&gt;Thanks  somesoni2.&lt;BR /&gt;
This works well after changing token="host"&lt;BR /&gt;
However can you please tell me if the same thing i want to have it only as a Dashboard panel how can i modify this?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 15:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166981#M10273</guid>
      <dc:creator>digitalrg</dc:creator>
      <dc:date>2014-08-01T15:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Server name based dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166982#M10274</link>
      <description>&lt;P&gt;If you already have an existing dashboard(or rather form), you can copy the "&lt;INPUT type="dropdown" token="host" ...="" /&gt;" to &lt;FIELDSET&gt; tag of that dashboard and copy "&lt;ROW&gt;&lt;BR /&gt;
    &lt;EVENT&gt;... &lt;/EVENT&gt;&lt;BR /&gt;
  &lt;/ROW&gt;" to section after &lt;/FIELDSET&gt;. I hope this is what you're asking.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 19:58:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166982#M10274</guid>
      <dc:creator>rahulroy_splunk</dc:creator>
      <dc:date>2014-08-01T19:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Server name based dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166983#M10275</link>
      <description>&lt;P&gt;Thanks Rahul Roy.&lt;BR /&gt;
One more query I have.&lt;BR /&gt;
Lets say I want to get a 2 dropdowns like "Source" and "Sourcetype" with the basic search as index=main&lt;BR /&gt;
How do I do it?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 09:51:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-Server-name-based-dashboard/m-p/166983#M10275</guid>
      <dc:creator>digitalrg</dc:creator>
      <dc:date>2014-08-11T09:51:47Z</dc:date>
    </item>
  </channel>
</rss>

