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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...