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!

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...

Want to Reduce Costs, Mitigate Risk, Improve Performance, or Increase Efficiencies? ...

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

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...