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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...