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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...