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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...