Dashboards & Visualizations

How to create more than 3 columns in dashboard.html template

imrago
Contributor

In version 4.0 I was able to have more than 3 columns in dashboard.html template.

How could I do the same in version 4.1?

example:

<view template="dashboard.html" onunloadCancelJobs="True">
  <label>Minutebuyer</label>
  <module name="ServerSideInclude" layoutPanel="panel_row1_col1">
      <param name="src">left.html</param>
  </module>
  <module name="ServerSideInclude" layoutPanel="panel_row1_col2">
      <param name="src">header.html</param>
  </module>
  <module name="ServerSideInclude" layoutPanel="panel_row1_col3">
      <param name="src">right.html</param>
  </module>
  <module name="ServerSideInclude" layoutPanel="panel_row1_col4">
      <param name="src">logout.html</param>
  </module>
</view>
Tags (2)
1 Solution

Simeon
Splunk Employee
Splunk Employee

This is a known issue in 4.1:

If you specify more than the 3-column maximum for layoutPanel, the error message is not very helpful. (SPL-29295)

http://docs.splunk.com/Documentation/Splunk/4.1/ReleaseNotes/Knownissues

It will be resolved in a maintenance release.

View solution in original post

0 Karma

Jason
Motivator

You can have more than 3 columns by adding and incrementing _grp instead of _col. All will appear in the same box onscreen, but you will be able to have multiple items in a box.

For example, to create five items across, use xml similar to this:

<module1 layoutPanel="panel_row1_col1_grp1">
 ...
</module1>
<module2 layoutPanel="panel_row1_col1_grp2">
 ...
</module2>
<module3 layoutPanel="panel_row1_col1_grp3">
 ...
</module3>
<module4 layoutPanel="panel_row1_col1_grp4">
 ...
</module4>
<module5 layoutPanel="panel_row1_col1_grp5">
 ...
</module5>

Simeon
Splunk Employee
Splunk Employee

This is a known issue in 4.1:

If you specify more than the 3-column maximum for layoutPanel, the error message is not very helpful. (SPL-29295)

http://docs.splunk.com/Documentation/Splunk/4.1/ReleaseNotes/Knownissues

It will be resolved in a maintenance release.

0 Karma

piebob
Splunk Employee
Splunk Employee

the question was why there can't be more than 3; this was apparently possible in an earlier version.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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