Reporting

Can we insert a screenshot of a dashboard in the alert

xvxt006
Contributor

Can we insert a screenshot of a dashboard in the alert? i want to include a screenshot of a dashboard in a report email

Tags (1)
0 Karma

ChrisG
Splunk Employee
Splunk Employee

There is a topic in the Alerting Manual that documents how to schedule PDF delivery of a dashboard. It's not a screen shot, will it meet your needs?

0 Karma

ChrisG
Splunk Employee
Splunk Employee

Note that the PDF server app is not the same thing as integrated PDF generation. It is an older, separate download that was replaced by integrated PDF generation in Splunk Enterprise 6.0. It is now deprecated.

0 Karma

Lucas_K
Motivator

The pdf server app uses a cobbled together xvfb/firefox/pdf generator. It might be possible to mod that app and make it just create the splunk-report.png instead of the pdf.

In the pdfserver/bin/pdfserver.py file there is some default options set which could be overridden using output=png instead of the default output=pdf option.

I've tried this but I can't figure out where the file gets temporarily created so I can grab it. I'm guessing the output is not actually saved anywhere and actually piped into the email as the attachment.

0 Karma

ChrisG
Splunk Employee
Splunk Employee

Okay. I don't know how to do that...I think you would have to do something fancier than I know. Scripted alerts (http://docs.splunk.com/Documentation/Splunk/6.1.2/Alert/Configuringscriptedalerts) will enable you to trigger a shell script or batch file, so maybe you could script something to grab the image and email it when your alert conditions occur?

0 Karma

xvxt006
Contributor

Actually we wanted as a screenshot instead of PDF

0 Karma

somesoni2
Revered Legend

You can have the pdf output of the dashboard in the alert email. See this

http://answers.splunk.com/answers/111602/trigger-a-pdf-via-the-command-line

0 Karma
Get Updates on the Splunk Community!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...