[chrony-users] Logging syslog messages to file |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-users] Logging syslog messages to file
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Fri, 14 Mar 2025 10:42:00 +1300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smtpservice.net; i=@smtpservice.net; q=dns/txt; s=a1-4; t=1741902138; h=feedback-id : x-smtpcorp-track : date : message-id : to : subject : from : reply-to : sender : list-unsubscribe : list-unsubscribe-post; bh=WqmyMyUv4ijxrnKLLSVHwyPBMiPSD9Dm8oPfuxz/l2A=; b=bRpZkm1Bcep19VCblCl7+WlWuUaoKcb+CSyVgkJpbVdypXQRXZC3OtigSSMXhsplY5dts f9JK7oAOwyz1sesWA8JTiAiFm98SVDWmPZ/T771MX9YmG6xqIOCIx2bJ3pMErJB/uTiDEgh UIST3xdGhU6/rLUdFGffFEge5S/BMTIfdTkqv/C+Iz5TFjop/ZLbA2TtTiRrDpXoCpnO51c qaebLTZFNoOc92juIKkIKexqtnw/eAtFx27ppAm6JM1B+V7JQB7hFSr+7/w6foEtXvYgudq j1RnbGXYgkZL8670huGHk4XsPYK1pwFsaGvjI09yrkVwPMFpzd/LrNzF/UjA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whatroute.net; i=@whatroute.net; q=dns/txt; s=s149811; t=1741902138; h=from : subject : to : message-id : date; bh=WqmyMyUv4ijxrnKLLSVHwyPBMiPSD9Dm8oPfuxz/l2A=; b=XImBHpDYvqL9z0v8OFsCXl5o6iXu+sr1JzlrhcRQ+lwMdt8qqG+Qk/n2TEU4uVDyIYYq/ LZ4IFx1IRsyBgblDcpClvg33eMsFgg5uipEeIT7GF7oZj87fXA8UKISkX8pJMMKbbAQfQrP 34NJyVqqWv3vAFr4d4X85DGoeK49cEbcFLzJRlcuYJL+QLpbUgWB4SIZIoY8XiMxnoE2uI3 JeUODXKIUM5vLvDNpHjjcC/vs/eZbHcciMS32vt+J4NKA8D3RPq+hdvlWLmbjSvsPshlIuW y4roFBe/Aqzt5m3Yb3SyN5sPDdAT2Pk2WMia7sELY1MIMzew+MmaXon8Dxhw==
- Feedback-id: 149811m:149811acx33YQ:149811sn2XTID1hj
I am targeting macOS which now has a horrendously complex logging system. Syslog messages are recorded but quite difficult to extract from the Apple universal logging. Not something I would willingly inflict on end users. I want to place the messages in a text file that can be easily monitored from either the commandline or programmatically.
I see I can use the '-l file' option of chronyd to log the messages to a file, but I have a few questions.
1. Does the location of 'file' use the LogDir directory by default? If not, is there any problem in using that directory? My preferred location for the file would be in /var/log/chrony directory with a title of chronyd.log.
2. Can the log be rotated (i.e. closed then renamed) without restarting chronyd? This facility is available via chronyc for the measurement, tracking etc logs but I think that probably doesn't apply to syslog files. Would be really nice if it did.
Thanks in advance for any suggestions.
Bryan
--
Bryan Christianson
bryan@xxxxxxxxxxxxx
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.