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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...