@emeelan ,
Unix epoch time is the number of seconds that have elapsed since the Unix epoch, that is the time 00:00:00 UTC on 1 January 1970, minus leap seconds.
So it doesn't look like human readable combination of year, date, time , but looks like a big number.
We are using Splunk Cloud 7.0.13.
We know that date is added to the pdf file name being emailed and we add current date to PDF dashboard itself, but management wanted to add date to Email subject:-)
If you look at this documentation article "Use tokens in email notifications" ( https://docs.splunk.com/Documentation/Splunk/7.0.13/Alert/EmailNotificationTokens )
you will find a table there "Tokens available for email notification" that maps token category with alert action , scheduled reports and Scheduled PDF delivery.
The table states that "Search results" and "Job information" email token categories can not be used for Scheduled PDF delivery as they are not supported.
So we cannot pass $result.fieldname$ (part of Search results category) or $job.earliestTime$/ $job.latestTime$ (part of Job information category)
to Email subject ! Splunk documentation states that.
The only categories that can be passed to Email subject for Scheduled Dashboard PDF delivery are Search Metadata category ( $app$ , etc), Server tokens ( $server.serverName$,etc) and Dashboard metadata tokens ($dashboard.title$,etc).
Not clear why people are trying to advice to use $job.earliestTime$/ $job.latestTime$ for Scheduled PDF delivery if it is not possible via use of tokens according to Splunk documentation.
Look at the similar discussion at https://answers.splunk.com/answers/506310/how-to-include-earliest-and-latest-times-in-schedu.html
cmerriman gave an accepted answer at Feb 27, 2017 at 06:30 AM:
"For dashboards, I don't think you can access the earliest and latest time tokens for emails.
http://docs.splunk.com/Documentation/Splunk/6.5.2/Viz/DashboardPDFs#Tokens_available_for_email_notifications
When I have a PDF generated, the date of generation is in the attachement name and then I also have the date range as an HTML panel inside the PDF at the top. That was my workaround." and
DalJeanis suggested to request an enhancement:
DalJeanis ♦ · Feb 27, 2017 at 07:15 AM More...
Seems like an good enhancement to request.
It was 3 years ago and I thought maybe somebody found a way to add date/time to Email subject since then and posted a new question
... View more