Dashboards & Visualizations

Exporting dashboard pdf using splunk-sdk

D644832
Loves-to-Learn

Hey, 

Is there a way in which I can export my dashboard pdf using python and splunk-sdk so as to get the same result you would if you clicked on the export button? 

Labels (1)
0 Karma

D644832
Loves-to-Learn

Thanks @tscroggins !

0 Karma

tscroggins
Influencer

Hi @D644832,

You can use the undocumented pdfgen service, e.g.:

curl -k -X POST -u user:pass https://localhost:8089/services/pdfgen/render?input-dashboard=dashboard_name

The response body will have Content-Type: application/pdf, which you can save directly as a PDF file.

See $SPLUNK_HOME/etc/system/bin/pdfgen_endpoint.py or search the community for pdfgen for more information.

0 Karma
Get Updates on the Splunk Community!

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...

Explore the Latest Educational Offerings from Splunk (November Releases)

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...