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!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...