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!

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

SignalFlow: What? Why? How?

What is SignalFlow? Splunk Observability Cloud’s analytics engine, SignalFlow, opens up a world of in-depth ...

Federated Search for Amazon S3 | Key Use Cases to Streamline Compliance Workflows

Modern business operations are supported by data compliance. As regulations evolve, organizations must ...