Getting Data In

How to have more than 49 panels in a dashboard?

kasu_praveen
Communicator

Is there any limit to maximum number of rows allowed in layoutpanel?

I just tested with 50 rows, splunk says "found an invalid value for layoutPanel - 'panel_row50_col1'". What is wrong here? Is there any way I can increase maximum rows allowed in layoutpanel?

Here is my code snippet, which is throwing error. If I remove last module with layoutpanel "panel_row50_col1", then it is working fine.

<view autoCancelInterval="90" isVisible="true" objectMode="SimpleDashboard" onunloadCancelJobs="true" refresh="-1" template="dashboard.html">






*
False
1



splunk.search.job
True
1
warn


ROW 1


ROW 2


ROW 3


ROW 4


ROW 5


ROW 6


ROW 7


ROW 8


ROW 9


ROW 10


ROW 11


ROW 12


ROW 13


ROW 14


ROW 15


ROW 16


ROW 17


ROW 18


ROW 19


ROW 20


ROW 21


ROW 22


ROW 23


ROW 24


ROW 25


ROW 26


ROW 27


ROW 28


ROW 29


ROW 30


ROW 31


ROW 32


ROW 33


ROW 34


ROW 35


ROW 36


ROW 37


ROW 38


ROW 39


ROW 40


ROW 41


ROW 42


ROW 43


ROW 44


ROW 45


ROW 46


ROW 47


ROW 48


ROW 49


ROW 50

Tags (3)
0 Karma
1 Solution

kasu_praveen
Communicator

Value is hard coded in the dashboard template.
However you can copy the dashboard template out of

$SPLUNK_HOME/share/splunk/search_mrsparkle/templates/view/dashboard.html

copy it to
$SPLUNK_HOME/etc/apps/YOUR_APP_HERE/appserver/templates/custom_dashboard.html

down near the bottom you'll see:
% for rowNumber in range(1,51): , Change the value 🙂

Then in your view, take out

template="dashboard.html"
and put in this:
template="/YOUR_APP_HERE:/templates/custom_dashboard.html"

View solution in original post

kasu_praveen
Communicator

Value is hard coded in the dashboard template.
However you can copy the dashboard template out of

$SPLUNK_HOME/share/splunk/search_mrsparkle/templates/view/dashboard.html

copy it to
$SPLUNK_HOME/etc/apps/YOUR_APP_HERE/appserver/templates/custom_dashboard.html

down near the bottom you'll see:
% for rowNumber in range(1,51): , Change the value 🙂

Then in your view, take out

template="dashboard.html"
and put in this:
template="/YOUR_APP_HERE:/templates/custom_dashboard.html"

sowings
Splunk Employee
Splunk Employee

Why would you want more than 49 rows? A dashboard with that many rows (remembering that you can have multiple columns per row) would result in so many searches that it would likely take ages to load.

If you need that many for layout purposes, you could consider using the native SDKs to work directly in Javascript. You also have the option of Django, if you're using version 6.

0 Karma

somesoni2
Revered Legend

You can have only 49 panel rows in a dashboard

alacercogitatus
SplunkTrust
SplunkTrust

somesoni2: where did you verify that this is the maximum?

kasu_praveen
Communicator

Thanks somesoni2, Looking forward for your reply.

0 Karma

somesoni2
Revered Legend

I don't see any direct way to increase this limit. I will investigate and will let you know if I find anything.

0 Karma

kasu_praveen
Communicator

Thanks for the quick response.

Is there any way, I can have more than 49 panel rows in dashboard?

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...