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?

Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...