Getting Operational Intelligence to the users who need it the most can be challenging. They can be users who are not IT savvy, don't have the correct access to the right systems, or are executives about to walk into a client meeting to go over the latest result data.
Sometimes, all a user needs is to have data e-mailed to their inbox every morning so that they can review it on their commute to the office or have an assistant prepare for a morning briefing. Splunk allows the users to schedule a dashboard so that it can be delivered as a PDF document via e-mail to a customizable list of recipients.
This recipe will show you how to schedule the delivery of a dashboard within the Operational Intelligence application as a PDF document to an internal e-mail distribution list.
To step through this recipe, you will need a running Splunk Enterprise server, with the sample data loaded from Chapter 1, Play Time – Getting Data In, and you should have completed the earlier recipes in this chapter. You should also be familiar with navigating the Splunk user interface. You should also have configured your e-mail server to work with Splunk so that Splunk can actually send e-mails to specified addresses.
Follow these steps to schedule a PDF delivery of your dashboard:
Since Splunk 5 was released, Splunk Enterprise has been natively able to produce PDFs of dashboards and reports. Prior to Version 5, it required a separate add-on app that only worked on Linux servers and required other operating system dependencies. The new integrated PDF features allow quicker and easier access to generate PDFs, either via a schedule and e-mailed or directly from the Web.
There are still some situations that are not able to produce PDFs, such as form-driven dashboards, dashboards created using advanced XML, and Simple XML dashboards that still contain Flash components. There are also some features, such as heat map overlays, that do not render properly.
PDFs are generated when requested by native libraries built into Splunk that render what would normally be output as HTML and encode this into the PDF. It's not an easy feat, as you have to take the page layout and orientation into consideration as the PDF is much more constrained than the browser window.
When delivering a scheduled PDF of a dashboard, you use the same mechanism that scheduled reports and alerts use. The sendemail
command is the backbone of the process and allows many different configuration options for the format of the message, including a full range of tokens that can be inserted into the subject and body of the messages that are replaced with job- and schedule-specific details.
For more information on the configuration options to schedule reports and dashboards, check out http://docs.splunk.com/Documentation/Splunk/latest/Report/Schedulereports.
3.19.31.73