Hello,

I have monit version 5.25.1 on a Ubuntu Bionic, in that, I see the logs
of the form:

[UTC May  6 06:27:31] debug    : '<mydaemon>' zombie check succeeded

Is there any way to include the milliseconds in the timestamp? or to change the
timestamp format ?

Earlier, I was using syslog so that I can get a timestamp like:

2022-05-06 03:51:09.427 monit[16814]: '<mydaemon>' zombie check succeeded

But In newer Linux,  systemd taking over the logging, syslogs go via
journald! I see logs in the syslog files as well as in the journals!
Hence, I am thinking of falling back to the file log option, but it's
essential for us to see milliseconds as well, in the timestamp! Any
suggestions?

--
Regards,
A. Aniruddha

Reply via email to