I have a token I want to set up when I first init dashboard:
[stats count | eval search=strftime(now(), "mysearch%y%m%d%H%M%S.csv")]
But this gets interpreted dynamically throughout changing the name of the file. I just want to have a timestamp literal I can reuse. Been at it for a while using fieldformat, print, etc. Thanks!
You can init strftime(now(), "mysearch%y%m%d%H%M%S.csv") first then use it in the actual token.
<init>
<eval token="filename">strftime(now(), "mysearch%y%m%d%H%M%S.csv")</eval>
<set token="search">[stats count | eval search=$filename$]</set>
</init>
You can init strftime(now(), "mysearch%y%m%d%H%M%S.csv") first then use it in the actual token.
<init>
<eval token="filename">strftime(now(), "mysearch%y%m%d%H%M%S.csv")</eval>
<set token="search">[stats count | eval search=$filename$]</set>
</init>
Worked like a charm! Thank you!
Please accept answer.
Sorry! Done.