I have a requirement to schedule a PDF weekly/monthly etc and show the Title of each section representing the Day From and Day To.
I created dynamic tokens and put that in the title. The dashboard shows it and when I click export PDF it shows appropriate dates but when I schedule a PDF the Auto Scheduled PDF doesn't show the dates, instead it shows $token_XX$ which means the tokens are not getting resolved with the auto scheduled PDF.
Modified the search query as I cant paste the original
Daily Stats - Report
<search>
<query>| makeresults
| eval currentDate=strftime(relative_time(now(),"-1d"),"%m/%d/%Y")
| eval minus1Date=strftime(relative_time(now(),"-1d"),"%m/%d/%Y")</query>
<earliest>-1s@s</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
<done>
<set token="tok_cur_Date">$result.currentDate$</set>
<set token="tok_minus1_Date">$result.minus1Date$</set>
</done>
</search>
<panel>
<html>
<style>.chartTitleText {font-size: 16px; font-weight:bold;}</style>
<p class="chartTitleText">$tok_minus1_Date$ to $tok_cur_Date$</p>
</html>
<single>
<title>Availability (Rounded after 2 Decimals)</title>
<search>
<query>index="prod" source="*" | stats count(eval(isSuccessful="Y")) as SUCCESS_COUNT count as TOTAL | eval ATB=SUCCESS_COUNT/TOTAL*100 | table ATB</query>
<earliest>-1d@d</earliest>
<latest>now</latest>
</search>
</single>
</panel>
... View more