<?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 set “href=….xxx..” as the default dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271923#M45244</link>
    <description>&lt;P&gt;Now we want to set a href as default dashboard&lt;BR /&gt;
set as following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nav&amp;gt;
…
   &amp;lt;collection label="Search"&amp;gt;
        &amp;lt;view name=“aaa” /&amp;gt;
        &amp;lt;a href="/app/abc/flashtimeline?q=search%20index=abc" default=“true”&amp;gt;Timeline&amp;lt;/a&amp;gt;
        &amp;lt;view name=“bob” /&amp;gt;
   &amp;lt;/collection&amp;gt;
…
&amp;lt;/nav&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it still doesn’t works &lt;/P&gt;

&lt;P&gt;Pls advise me how to set the href as the default dashboard&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2016 13:23:03 GMT</pubDate>
    <dc:creator>akdake</dc:creator>
    <dc:date>2016-07-26T13:23:03Z</dc:date>
    <item>
      <title>how to set “href=….xxx..” as the default dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271923#M45244</link>
      <description>&lt;P&gt;Now we want to set a href as default dashboard&lt;BR /&gt;
set as following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nav&amp;gt;
…
   &amp;lt;collection label="Search"&amp;gt;
        &amp;lt;view name=“aaa” /&amp;gt;
        &amp;lt;a href="/app/abc/flashtimeline?q=search%20index=abc" default=“true”&amp;gt;Timeline&amp;lt;/a&amp;gt;
        &amp;lt;view name=“bob” /&amp;gt;
   &amp;lt;/collection&amp;gt;
…
&amp;lt;/nav&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it still doesn’t works &lt;/P&gt;

&lt;P&gt;Pls advise me how to set the href as the default dashboard&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 13:23:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271923#M45244</guid>
      <dc:creator>akdake</dc:creator>
      <dc:date>2016-07-26T13:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to set “href=….xxx..” as the default dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271924#M45245</link>
      <description>&lt;P&gt;why you want to use href to launch a dashboard instead of &lt;BR /&gt;
      &lt;VIEW name="mydashboard" default="true"&gt;&lt;/VIEW&gt;&lt;BR /&gt;
?&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 13:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271924#M45245</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-07-26T13:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to set “href=….xxx..” as the default dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271925#M45246</link>
      <description>&lt;P&gt;href can automatically passess  some search parameters. so the search(index=abc  sourcetype=abc）  can be open quickly by clicking. &lt;BR /&gt;
TKS.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:37:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271925#M45246</guid>
      <dc:creator>akdake</dc:creator>
      <dc:date>2016-07-26T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to set “href=….xxx..” as the default dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271926#M45247</link>
      <description>&lt;P&gt;Hi, did you find an answer for this problem? I want to do the same thing.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 01:03:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271926#M45247</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-11-10T01:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to set “href=….xxx..” as the default dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271927#M45248</link>
      <description>&lt;P&gt;Hi akdake,&lt;BR /&gt;
If you need to put the search dashboard as the default dashboard of your App you don't need to use href, you can set the following line in your menu &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;view name="search" default="true"/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 11:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271927#M45248</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-10T11:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to set “href=….xxx..” as the default dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271928#M45249</link>
      <description>&lt;P&gt;Seems like anchor tag will not support default attribute. Also name attribute is invalid for anchor tag. With this you can only use &lt;STRONG&gt;&amp;lt; view name="abc" default="true" /&amp;gt;&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;In order to pass values as querystring by default to dashboard, following are your options based on your use cases:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Scenario 1&lt;/STRONG&gt;&lt;BR /&gt;
If you do not want users to see or modify values for index and query fields, you need to set them as token within a dummy search.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Add the following code in Simple XML using Source editor.&lt;BR /&gt;
&amp;lt;!-- Dummy Search running without a query. Just to set default tokens --&amp;gt;&lt;BR /&gt;
&amp;lt;search&amp;gt;&lt;BR /&gt;
  &amp;lt;query&amp;gt;&amp;lt;/query&amp;gt;&lt;BR /&gt;
  &amp;lt;preview&amp;gt;&lt;BR /&gt;
     &amp;lt;set token="q"&amp;gt;search&amp;lt;/set&amp;gt;&lt;BR /&gt;
     &amp;lt;set token="index"&amp;gt;abc&amp;lt;/set&amp;gt;&lt;BR /&gt;
  &amp;lt;/preview&amp;gt;&lt;BR /&gt;
&amp;lt;/search&amp;gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Then use &lt;STRONG&gt;$q$&lt;/STRONG&gt; and &lt;STRONG&gt;$index$&lt;/STRONG&gt; later on in your query, which I think is already present in your existing Dashboard code.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;STRONG&gt;Scenario 2&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;Only for Splunk 6.5&lt;/STRONG&gt; &lt;BR /&gt;
Splunk 6.5 has introduced &amp;lt;init&amp;gt; section in Simple XML Views which allows users to set default values on page load through token. Refer to &lt;STRONG&gt;Splunk 6.x Dashboard Examples&lt;/STRONG&gt; for &lt;STRONG&gt;Set tokens on page load&lt;/STRONG&gt; example.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;init&amp;gt;
  &amp;lt;set token="index"&amp;gt;abc&amp;lt;/token&amp;gt;
  &amp;lt;set token="q"&amp;gt;search&amp;lt;/token&amp;gt;
&amp;lt;/init&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Scenario 3&lt;/STRONG&gt;&lt;BR /&gt;
If you want any of the values like index to be changed later on after first time load, you can add two new fields Dropdown (Dynamic with values defined by you) or Textbox (Dynamic with values set by user). Let me take dropdown example.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Add new Dropdown and choose Label as "Select Index".&lt;/LI&gt;
&lt;LI&gt;Under Token Option add Token as &lt;STRONG&gt;index&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Check &lt;STRONG&gt;Search on Change&lt;/STRONG&gt;. (This will be required for dashboard refresh with selected value even for first time load).&lt;/LI&gt;
&lt;LI&gt;Under Static Options choose Name as &lt;STRONG&gt;abc&lt;/STRONG&gt; and Value as &lt;STRONG&gt;abc&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Next, select &lt;STRONG&gt;Default&lt;/STRONG&gt; as &lt;STRONG&gt;abc&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Similarly, Add new Dropdown for "Select Query"&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Add Token as &lt;STRONG&gt;q&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Check &lt;STRONG&gt;Search on Change&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Provide Static Name and Value as &lt;STRONG&gt;search&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Finally, select &lt;STRONG&gt;Default&lt;/STRONG&gt; as &lt;STRONG&gt;search&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;In your existing dashabord you can continue to use &lt;STRONG&gt;$index$&lt;/STRONG&gt; and &lt;STRONG&gt;$q$&lt;/STRONG&gt; as the tokens which will be loaded with default values once the dashboard is loaded.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Disadvantage of 2nd approach is that two token fields will be visible to users.&lt;BR /&gt;
Advantage could be that you can use Dynamic Options to provide list of indexes in case you need them.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Please try out and let me know if this helps, or if you need further assistance.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;NOTE: In either of the above two approaches you will have to use view tag to set default dashboard in your navigation menu XML i.e. &lt;STRONG&gt;&amp;lt; view name="abc" default="true" /&amp;gt;&lt;/STRONG&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 13:15:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271928#M45249</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-10T13:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to set “href=….xxx..” as the default dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271929#M45250</link>
      <description>&lt;P&gt;You need href if you want to reference a dash from another app.&lt;BR /&gt;
Which is what I want to do.&lt;/P&gt;

&lt;P&gt;I have tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;a href="cars_twitter_analysis__test_app"  default=“true”&amp;gt;Cars tweet analysis&amp;lt;/a&amp;gt;  

&amp;lt;a href="overview.html"  default=“true”&amp;gt;Overview&amp;lt;/a&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Etc, nothing seems to work.&lt;BR /&gt;
I want to put in a link to the forwarder mgmt page:&lt;BR /&gt;
"/manager/system/deploymentserver?t=2"&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 00:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271929#M45250</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-11-11T00:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to set “href=….xxx..” as the default dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271930#M45251</link>
      <description>&lt;P&gt;Edite my answer, added the option to do the same in Splunk 6.5 with the latest init section available on forms in Simple XML to set tokens on page load&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 18:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271930#M45251</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-15T18:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to set “href=….xxx..” as the default dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271931#M45252</link>
      <description>&lt;P&gt;I am trying to achieve something similar. I am trying to refer a Global Dashboard of APP1 into APP2 and APP3. I want to default the values of dashboard drop downs with different values for APP1, APP2 and APP3. &lt;/P&gt;

&lt;P&gt;Did you got any solution for your case?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 15:29:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271931#M45252</guid>
      <dc:creator>nileshgupta</dc:creator>
      <dc:date>2018-04-27T15:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to set “href=….xxx..” as the default dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271932#M45253</link>
      <description>&lt;P&gt;I was able to do it myself. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 17:05:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-set-href-xxx-as-the-default-dashboard/m-p/271932#M45253</guid>
      <dc:creator>nileshgupta</dc:creator>
      <dc:date>2018-04-27T17:05:19Z</dc:date>
    </item>
  </channel>
</rss>

