Dashboards & Visualizations

Bug in AccountBar module for lite option

phoenixdigital
Builder

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

phoenixdigital
Builder

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

phoenixdigital
Builder

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>
0 Karma

phoenixdigital
Builder

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

dipanjan80
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

phoenixdigital
Builder

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

dipanjan80
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
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...