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!

How to Monitor Google Kubernetes Engine (GKE)

We’ve looked at how to integrate Kubernetes environments with Splunk Observability Cloud, but what about ...

Index This | How can you make 45 using only 4?

October 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Splunk Education Goes to Washington | Splunk GovSummit 2024

If you’re in the Washington, D.C. area, this is your opportunity to take your career and Splunk skills to the ...