Dashboards & Visualizations

Bug in AccountBar module for lite option

I note that on this instructions from the manual you can remove the 'App' from the menu.
http://docs.splunk.com/Documentation/Splunk/5.0.2/AdvancedDev/DefaultApp

<module name="AccountBar" layoutPanel="appHeader">
    <param name="mode">lite</param>
</module>  

'lite' however does not remove the items (in particular manager and app dropdowns) that are mentioned in the /opt/splunk/share/splunk/search_mrsparkle/modules/nav/AccountBar.conf

When this is set to 'popup,' there are no links, the logo cannot be clicked, the view name is displayed instead of the app name, and there is a close button in the upper right. 'lite' mode displays only the account links and a back link, no logo or app menu.
Tags (2)
1 Solution

I ended up just making a HTML module with minimal information and not including the broken AccountBar module.

    <module name="HTML"  layoutPanel="appHeader">
    <param name="html"><![CDATA[
        <a class="appLogo" href="/en-US/app/myapp"></a>
        <h1>My App</h1>
        <a class="splunkPoweredLogo" target="_blank" href="http://www.splunk.com"></a>

        <a href="/en-GB/account/logout" style="float: right;">Logout</a>
         ]]></param>
</module>

View solution in original post

0 Karma

I ended up just making a HTML module with minimal information and not including the broken AccountBar module.

    <module name="HTML"  layoutPanel="appHeader">
    <param name="html"><![CDATA[
        <a class="appLogo" href="/en-US/app/myapp"></a>
        <h1>My App</h1>
        <a class="splunkPoweredLogo" target="_blank" href="http://www.splunk.com"></a>

        <a href="/en-GB/account/logout" style="float: right;">Logout</a>
         ]]></param>
</module>

View solution in original post

0 Karma

If they are using the web interface to create these dashboards I am not sure how you can force them to use a 'custom' template as opposed to the default one.

You could go down the path of editing the default template but it would probably have to be redone each time an update to Splunk is applied.
http://answers.splunk.com/answers/4502/edit-the-default-dashboard-template

0 Karma

Explorer

Let's say, I am exposing my service to a bunch of user and they are creating their own dashboards (from search result). How can I make sure those dashboard pages reflects this changes?

0 Karma

With Splunk 6 the HTML in the AccountBar might be slightly different. So it might be a good idea to get a copy of it by viewing the HTML source of any dashboard then adjust it accordingly for your own HTML module.

0 Karma

Explorer

Yes, there is a bug or some other setting, which has not been explained. I am on Splunk 6.0 and I am facing the same issue.
I have used the following setting but not reflecting.

  <module name="AccountBar" layoutPanel="appHeader">
    <param name="mode">popup</param>
    <param name="popupTitle">Vitals Now Dashboard</param>
  </module>
0 Karma