You are not logged in.

#1 2017-03-16 18:35:46

fermi
Member
Registered: 2017-03-16
Posts: 6

[SOLVED] OpenVPN no timestamps in logging

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

#2 2017-03-17 14:59:12

fermi
Member
Registered: 2017-03-16
Posts: 6

Re: [SOLVED] OpenVPN no timestamps in logging

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

Board footer

Powered by FluxBB