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">
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"
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"
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.
You can have only 49 panel rows in a dashboard
somesoni2: where did you verify that this is the maximum?
Thanks somesoni2, Looking forward for your reply.
I don't see any direct way to increase this limit. I will investigate and will let you know if I find anything.
Thanks for the quick response.
Is there any way, I can have more than 49 panel rows in dashboard?