RE: Monit log timestamp format
[email protected] Fri, 06 May 2022 15:47:29 GMT
| Newsgroups | gmane.comp.monitoring.monit.general |
|---|---|
| Message-ID | <[email protected]> |
Hello A. Aniruddha, the log format was changed with newer Monit versions. [2022-05-06T13:33:35+0200] info : Monit daemon with PID 220475 awakened [2022-05-06T13:33:35+0200] info : Awakened by User defined signal 1 But the timestamp use seconds only, milliseconds are not available and the format can not changed in the monitrc file. With regards, Lutz > -----ursprüngliche Nachricht----- > Von: [email protected] > Gesendet: 06.05.2022 08:33 Uhr > An: [email protected] > Betreff: Monit log timestamp format > 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 : '' 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]: '' 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 > > -----ursprüngliche Nachricht Ende-----