Forum Discussion

preslav_ilevski's avatar
Aug 16, 2017

Timestamp in email

Hi f5 team,

 

Can you help us with proposal how can we add timestamp in the body of the mail when configure /config/user_alert.conf?

 

1 Reply

  • Hello Preslav,

    You can use the shell command "date" to get the local time before sending the mail.

    example :

    timestamp=`date`
    

    Then you can use the $timestamp variable

    It will display something like that by default :

    Wed Aug 16 10:50:50 CEST 2017

    You can also customize the date as you want using arguments with command "date"

    Regards