Reporting

is it possible to change the name of the PDF reports from PDF Server?

piebob
Splunk Employee
Splunk Employee

right now Splunk sends pdf reports named splunk-report.pdf. we'd like to change them so they include the date and possibly the topic of the report. is this possible? how?

Tags (2)
1 Solution

gareth
Splunk Employee
Splunk Employee

Unfortunately it's not possible in the current version of Splunk without modifying code

View solution in original post

0 Karma

yannK
Splunk Employee
Splunk Employee

In splunk 4.3.1, the sendemail.py script updates the filename with the timestamp.
see line 528
filename = '%s-%s.pdf' % (pdfviewfn[:50], datestamp)

jliu
Explorer

It's hard-coded. I changed the report-name in sendemail.py file.

jliu
Explorer

I checked report.py file, but I couldn't find a way to change the name.
Is it hard-coded?

0 Karma

fatdragon
Engager

splunk code ? can we modify following file and get it do change report-name to include date/report title to what's generated?

/opt/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/controllers/report.py

gareth
Splunk Employee
Splunk Employee

Unfortunately it's not possible in the current version of Splunk without modifying code

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...