You are not logged in.
Hi,
OpenVPN connection started using systemd, logging to file doesn't show timestamps (tested with several verbosity levels).
The --suppress-timestamps directive isn't part of the OpenVPN conf files.
openvpn --version:
OpenVPN 2.4.0 armv6l-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Dec 30 2016
library versions: OpenSSL 1.0.2k 26 Jan 2017, LZO 2.10
Any ideas on how to get timestamps in the logfiles?
Thanks!
Last edited by fermi (2017-03-17 16:45:24)
Offline
Hi,
systemctl status showed:
system-openvpn\x2dclient.slice
| `-openvpn-client@abc.service
| `-7296 /usr/sbin/openvpn --suppress-timestamps --nobind --config abc.conf
When opening /usr/lib/systemd/system/openvpn-client@.service it provides:
ExecStart=/usr/sbin/openvpn --suppress-timestamps --nobind --config %i.conf
This is a template used to create the unit files.
Removed --suppress-timestamps from /etc/systemd/system/multi-user.target.wants/openvpn-client@abc.service and restarted the OpenVPN connection.
Timestamps are now provided in the log files.
Offline