Dashboards & Visualizations

Dashboard export to PDF - Panel title appears on incorrect page

joxley
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

AlexD
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

AlexD
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!

alisterwhipp
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

AlexD
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 $SPLUNK_HOME/etc/system/bin/pdfgen_endpoint.py, so I guess you could try customizing that to get more consistent results.

0 Karma

jkat54
SplunkTrust
SplunkTrust

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

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...