Dashboards & Visualizations

Dashboard export to PDF - Panel title appears on incorrect page

Path Finder

When exporting a dashboard to PDF (in Splunk v6.3.1) I get the title for a panel appearing on the page before the panel. You can see in the PDF here. Is this a bug?

0 Karma
1 Solution

Explorer

I was having this issue too, and the solution that worked for me was to insert a blank panel between each panel in the dashboard.

<row>
  <panel>
    <html>
    </html>
  </panel>
</row>

You may need to add some line breaks to get the spacing right. My dashboard content is consistently sized (tables with fixed numbers of rows) but I'm guessing this may not work if your results vary in length.

HTH!

View solution in original post

Explorer

I was having this issue too, and the solution that worked for me was to insert a blank panel between each panel in the dashboard.

<row>
  <panel>
    <html>
    </html>
  </panel>
</row>

You may need to add some line breaks to get the spacing right. My dashboard content is consistently sized (tables with fixed numbers of rows) but I'm guessing this may not work if your results vary in length.

HTH!

View solution in original post

Path Finder

Adding a blank panel works most of the time, but certainly not all of the time. And it shouldn't really be needed, the headings are usually in the same panel as the graph/table/whatever. It would seem that choosing where to insert linebreaks is following an odd logic in splunk PDF creation, and as the dashboard creation doesn't involve pages, there's no real manual solution that will be consistent.

0 Karma

Explorer

That's correct, Alister, this solution isn't ideal, and as noted isn't well suited to variable-length results. However it may help for results of a consistent length, as was the case for me.

I believe the python script used to generate the PDF is $SPLUNKHOME/etc/system/bin/pdfgenendpoint.py, so I guess you could try customizing that to get more consistent results.

0 Karma

SplunkTrust
SplunkTrust

I cant get your PDF to work. Can you also provide a copy of the dashboard's xml code?