Reporting

Can I email a pdf on demand?

matt
Splunk Employee
Splunk Employee

The sendemail.py script seems to want to support the sending of pdfs, but I can't trick it into actually delivering one from the command line. I have tried:

sourcetype=syslog startminutesago=5 | sendemail to="foo@example.com" sendpdf=1 sendresults=1 pdfview=1

and various other incantations of the same with no luck. The PDF server works fine with dashboards and saved searches.

Inside of the email that sendemail.py sends is this statement:

An error occurred while generating a PDF of this report: Can't attach PDF - either ssLink or sessionKey unavailable

Tags (2)
1 Solution

jrodman
Splunk Employee
Splunk Employee

I suspect the the actual pdf generation step is missing here. sendemail's only responsibility is to mail out the pdf.

I do not think the action to fire the pdf generator is exposed to the search language at this time.

View solution in original post

markbarber21
Path Finder
0 Karma

kalitbri
Explorer

+1, I would be happy to see this feature available too.

0 Karma

bfaber
Communicator

This would be a great feature to have. I can't seem to get it working either.

jrodman
Splunk Employee
Splunk Employee

I suspect the the actual pdf generation step is missing here. sendemail's only responsibility is to mail out the pdf.

I do not think the action to fire the pdf generator is exposed to the search language at this time.

Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...