Dashboards & Visualizations

Dashboard layout changes ever since 4.2

Branden
Builder

I upgraded to 4.2 last week. Ever since the upgrade, my dashboard has been messed up a bit. Particularly, there is no longer a carriage return or
where there once was.

For example, I had a "SingleValue" button and, below it, a "View Results" link. But ever since 4.2, the "View Results" link now appears to the right of the SingleValue button.

Similarly, where I once had several SingleValue buttons stacked on top of one another, they're now staggered next to each other.

Did something change that I missed?

Here's a snippet of my code, pretty straightforward:

<module name="HiddenSavedSearch" layoutPanel="panel_row3_col2_grp1" autoRun="True">
  <param name="savedSearch">Check Echk</param>
  <param name="useHistory">Auto</param>
  <module name="HiddenPostProcess">
     <param name="search">search host="xyz" status=Failed | stats count | eval yesno=if(count==0, "Active", "Backup") | rangemap field=count severe=1-2 default=low </param>
        <module name="SingleValue">
           <param name="field">yesno</param>
           <param name="classField">range</param>
           <param name="beforeLabel">Ethernet:</param>
        </module>
        <module name="ViewRedirectorLink">
            <param name="viewTarget">flashtimeline</param>
            <param name="label">View results</param>
        </module>
  </module>

Any suggestions has to how I can get that "ViewResults" to appear below the SingleValue once again would be appreciated. Thanks!

Tags (1)
0 Karma

Ant1D
Motivator

Hi Branden,

I installed 4.2. on a dev box and also noticed that the positioning of some modules (E.g. The timerangepicker) had shifted from where it use to be placed in earlier versions of Splunk.

To solve your problem, maybe you could shift the positioning of viewRedirectorLink module as shown below:

<module name="HiddenSavedSearch" layoutPanel="panel_row3_col2_grp1" autoRun="True">
  <param name="savedSearch">Check Echk</param>
  <param name="useHistory">Auto</param>
  <module name="HiddenPostProcess">
     <param name="search">search host="xyz" status=Failed | stats count | eval yesno=if(count==0, "Active", "Backup") | rangemap field=count severe=1-2 default=low </param>
        <module name="ViewRedirectorLink">
            <param name="viewTarget">flashtimeline</param>
            <param name="label">View results</param>
        </module>
        <module name="SingleValue">
           <param name="field">yesno</param>
           <param name="classField">range</param>
           <param name="beforeLabel">Ethernet:</param>
        </module>
  </module>

This will not result in the link being placed under the singlevalue module...Instead it will be placed above the singlevalue module. Maybe this is better than having it positioned to the side.


You can see all of the layoutPanel attributes that you can reference here: http://www.splunk.com/base/Documentation/4.2/Developer/AdvancedSearch

I have tried different attributes e.g. layoutPanel="mainSearchControls" but none position this link under the singlevalue object.

Alternatively, you could use CSS code in application.css to re-position your link:

E.g.

.viewHeader .ViewRedirectorLink a {
    color: red;
    position: relative;
    top: 50px;
    right: 20px;
}

This example would turn every ViewRedirectorLink module where layoutPanel="viewHeader" to red instead of the default blue. Then it would shift the link down and to the left by those values. This however is not a great solution because it will affect ALL ViewRedirectorLink module where layoutPanel="viewHeader"

Branden
Builder

Well that does place it above, instead of below... but that is better than on the side. 🙂 Thanks for the help!

0 Karma

Ant1D
Motivator

Hi, I have edited my answer. Maybe it will help

0 Karma

Branden
Builder

Thank you for the suggestion. That may work... except this issue is creeping up in other contexts as well, such as SingleValue buttons next to each other, instead of above/below each other. 😕
Glad I'm not alone though!

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!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...