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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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