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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...