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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...