<?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: How to set loading order for panels? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289415#M18350</link>
    <description>&lt;P&gt;kmaron's link provides a useful method in an answer by woodcock.  &lt;/P&gt;

&lt;P&gt;Basically,  you make the less-important searches wait for a value that hasn't been set yet, but that will be set to "noop" so it has no actual effect on the function.  &lt;/P&gt;

&lt;P&gt;You could also use "depends" to make the panels disappear until they are being populated.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 16:06:57 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-03-27T16:06:57Z</dc:date>
    <item>
      <title>How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289411#M18346</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a dashboard with 10+ panels and want to set an order for them in which they are loaded. This way I could make sure that the most important panels get loaded first and then the others.&lt;BR /&gt;
Do you know a way to do it? (JS is fine, too. I just need a cornerstone for it.)&lt;BR /&gt;
I'm interested in solutions for Splunk Enterprise 6.3 and 6.5 also.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 13:48:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289411#M18346</guid>
      <dc:creator>zeinstein</dc:creator>
      <dc:date>2017-03-27T13:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289412#M18347</link>
      <description>&lt;P&gt;Hi zeinstein,&lt;BR /&gt;
Splunk doesn't have a method to give a load order for panels.&lt;BR /&gt;
If you have the same search (or a similar one) in more panels, you could use the "post process search" method building a base search and use it for more panels.&lt;BR /&gt;
See in the Splunk 6.x Dashboard Examples App (&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;) how to build it.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289412#M18347</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-03-27T14:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289413#M18348</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;

&lt;P&gt;That's what I was afraid of. Not even with js?&lt;/P&gt;

&lt;P&gt;Thanks though!&lt;BR /&gt;
Zeinstein&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289413#M18348</guid>
      <dc:creator>zeinstein</dc:creator>
      <dc:date>2017-03-27T15:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289414#M18349</link>
      <description>&lt;P&gt;There's a really nice answer in a different question about dashboards that might help:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/511694/i-have-6-panels-on-a-dashboard-but-can-only-run-3.html"&gt;https://answers.splunk.com/answers/511694/i-have-6-panels-on-a-dashboard-but-can-only-run-3.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289414#M18349</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2017-03-27T15:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289415#M18350</link>
      <description>&lt;P&gt;kmaron's link provides a useful method in an answer by woodcock.  &lt;/P&gt;

&lt;P&gt;Basically,  you make the less-important searches wait for a value that hasn't been set yet, but that will be set to "noop" so it has no actual effect on the function.  &lt;/P&gt;

&lt;P&gt;You could also use "depends" to make the panels disappear until they are being populated.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 16:06:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289415#M18350</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-27T16:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289416#M18351</link>
      <description>&lt;P&gt;This is based off of this Q&amp;amp;A:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/511694/i-have-6-panels-on-a-dashboard-but-can-only-run-3.html#answer-511772"&gt;https://answers.splunk.com/answers/511694/i-have-6-panels-on-a-dashboard-but-can-only-run-3.html#answer-511772&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Yes, you can do this in Simple XML.&lt;/P&gt;

&lt;P&gt;Add this to the search of the panel that is to load second&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| $NOOP_1$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And this to the search of the panel that is to load third, and so on:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| $NOOP_2$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you go to the panel that is to load first and make it look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;Your First Panel&amp;lt;/title&amp;gt;
  &amp;lt;chart&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;Your First Panel Search Here&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;Your Earliest Here&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;Your Latest Here&amp;lt;/latest&amp;gt;
      &amp;lt;progress&amp;gt;
         &amp;lt;unset token="NOOP_1"&amp;gt;&amp;lt;/unset&amp;gt;
      &amp;lt;/progress&amp;gt;
      &amp;lt;done&amp;gt;
         &amp;lt;set token="NOOP_1"&amp;gt;noop&amp;lt;/set&amp;gt;
      &amp;lt;/done&amp;gt;
    &amp;lt;/search&amp;gt;
  &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do your other panels the same way, each using a higher &lt;CODE&gt;NOOP_#&lt;/CODE&gt; value that represents the show/search/load order.&lt;BR /&gt;
You can even make the panels invisible until each starts loading by adding a &lt;CODE&gt;depends&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 17:29:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289416#M18351</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-27T17:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289417#M18352</link>
      <description>&lt;P&gt;Very clever &lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 17:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289417#M18352</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-03-27T17:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289418#M18353</link>
      <description>&lt;P&gt;Nice solution, thank you!&lt;BR /&gt;
Only comment: for 6.5.x we should use &lt;CODE&gt;done&lt;/CODE&gt; instead of &lt;CODE&gt;finalized&lt;/CODE&gt; (I just read this in a comment at the link you've posted here).&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 09:12:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289418#M18353</guid>
      <dc:creator>zeinstein</dc:creator>
      <dc:date>2017-04-03T09:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289419#M18354</link>
      <description>&lt;P&gt;@woodcock, you also have a syntax error in you &lt;CODE&gt;unset&lt;/CODE&gt; line where the incorrect closing tag is used. I suggest the following change per @zeinstein comment.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;           &amp;lt;progress&amp;gt;
              &amp;lt;unset token="NOOP_1"/&amp;gt;
           &amp;lt;/progress&amp;gt;
           &amp;lt;done&amp;gt;
              &amp;lt;set token="NOOP_1"&amp;gt;noop&amp;lt;/set&amp;gt;
           &amp;lt;/done&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 14:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289419#M18354</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-05-25T14:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289420#M18355</link>
      <description>&lt;P&gt;I fixed it in the original solution; thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 20:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289420#M18355</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-25T20:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289421#M18356</link>
      <description>&lt;P&gt;Try to go about it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;form&amp;gt;
      &amp;lt;init&amp;gt;
        &amp;lt;unset token="token1"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;unset token="token2"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;unset token="token3"&amp;gt;&amp;lt;/unset&amp;gt;
    .....
    &amp;lt;/init&amp;gt;
    .....
    &amp;lt;input type="radio" token="panel"&amp;gt;
          &amp;lt;label&amp;gt;Run Panels&amp;lt;/label&amp;gt;
          &amp;lt;choice value="value1"&amp;gt;label 1&amp;lt;/choice&amp;gt;
          &amp;lt;choice value="value2"&amp;gt;label 2&amp;lt;/choice&amp;gt;
          &amp;lt;choice value="value3"&amp;gt;label 3&amp;lt;/choice&amp;gt;
    .....
    &amp;lt;change&amp;gt;
            &amp;lt;condition value="value1"&amp;gt;
              &amp;lt;set token="token1"&amp;gt;&amp;amp;#32;&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition value="value2"&amp;gt;
              &amp;lt;set token="token2"&amp;gt;&amp;amp;#32;&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition value="value3"&amp;gt;
              &amp;lt;set token="token3"&amp;gt;&amp;amp;#32;&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
    .....
    &amp;lt;/change&amp;gt;
        &amp;lt;/input&amp;gt;
    .....
&amp;lt;table&amp;gt;
&amp;lt;search&amp;gt;
&amp;lt;query&amp;gt;$token1$.....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So this initials unsets the tokens for each panel. you'll have a radio button for each panel and when it is selected, that panel will run based on the token you place at the beginning of the query. another method of this would be to set and unset each token in each condition statement, that would make it so when you click on another input, the current input is unset and will no longer run. you can also use &lt;CODE&gt;depends=$token1$&lt;/CODE&gt; in the panel to only show the panels running/ran. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 12:10:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289421#M18356</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-08T12:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289422#M18357</link>
      <description>&lt;P&gt;Hi, reference to the above, when I tried adding | $NOOP_1$ to the saved search it gave me error:&lt;BR /&gt;
Error in 'SearchParser': Missing a search command before '$'. Error at position '39' of search query 'search index=_internal | stats count | $NOOP_1$'&lt;/P&gt;

&lt;P&gt;Any idea how to solve this?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:20:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289422#M18357</guid>
      <dc:creator>ahmedn_splunk</dc:creator>
      <dc:date>2020-09-29T20:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289423#M18358</link>
      <description>&lt;P&gt;You cannot add it to the saved search.  It has to be in the dashaboard XML.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 15:31:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289423#M18358</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-05T15:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289424#M18359</link>
      <description>&lt;P&gt;You should be able to use &lt;CODE&gt;|savedsearch Your:search:details | $NOOP_1$&lt;/CODE&gt; in your XML.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 15:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289424#M18359</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-05T15:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set loading order for panels?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289425#M18360</link>
      <description>&lt;P&gt;Thanks will try this...&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 15:38:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-loading-order-for-panels/m-p/289425#M18360</guid>
      <dc:creator>ahmedn_splunk</dc:creator>
      <dc:date>2018-07-05T15:38:00Z</dc:date>
    </item>
  </channel>
</rss>

