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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...