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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...