Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-07-03 Thread Bo Berglund
On Wed, 22 Jun 2022 18:32:59 -0400, Nathan Stratton Treadway wrote: >So now my guess is that you had an apt sources.list entry pointing to >the build.openvpn.net repo back in your Xenial days, which then probably >got disabled by the Ubuntu release-upgrade process (and thus apt no >longer

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-29 Thread Richard Hector
On 23/06/22 02:05, David Sommerseth wrote: /usr/lib/systemd/system/openvpn-server@.service ^^  This is the proper service file being packaged.  Even though, as this is from a Debian package, I would have expected it under /lib/systemd/system. Thanks to the big /usr merge, they're going to

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-23 Thread David Sommerseth
On 22/06/2022 22:03, Bo Berglund wrote: On Wed, 22 Jun 2022 15:58:35 +0200, David Sommerseth wrote: [...snip...] I see you get a recommendation to remove '--suppress-timestamp'. That is only useful if you decide to use --log. If you let the journal do that job, it will already provide the

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-22 Thread Nathan Stratton Treadway
On Wed, Jun 22, 2022 at 12:38:24 +0200, Bo Berglund wrote: > On Tue, 21 Jun 2022 01:52:48 -0400, Nathan Stratton Treadway > wrote: > > >On Mon, Jun 20, 2022 at 08:51:47 +0200, Bo Berglund wrote: > > > >> Originally I used OpenVPN since around 2014 on RaspberryPi to access my > >> home > >> LAN.

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-22 Thread Nathan Stratton Treadway
On Wed, Jun 22, 2022 at 16:11:40 +0200, David Sommerseth wrote: > On 20/06/2022 00:10, Nathan Stratton Treadway wrote: > >On Sun, Jun 19, 2022 at 23:03:15 +0200, Bo Berglund wrote: > >>I get this: > >> > >>dpkg -L openvpn | grep systemd.*openv > >>/lib/systemd/system-generators/openvpn-generator >

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-22 Thread Bo Berglund
On Wed, 22 Jun 2022 15:58:35 +0200, David Sommerseth wrote: >> But will journalctl work independently of the openvpn log option settings, >> like >> verbosity etc? >> I have this now in the two instance conf files: >> >> log /etc/openvpn/log/openvpn.log >> verb 4 >> mute 10 >> >> and: >> >>

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-22 Thread David Sommerseth
On 20/06/2022 00:10, Nathan Stratton Treadway wrote: On Sun, Jun 19, 2022 at 23:03:15 +0200, Bo Berglund wrote: I get this: dpkg -L openvpn | grep systemd.*openv /lib/systemd/system-generators/openvpn-generator /lib/systemd/system/openvpn.service /lib/systemd/system/openvpn@.service

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-22 Thread David Sommerseth
On 18/06/2022 23:20, Bo Berglund wrote: On Sat, 18 Jun 2022 20:01:10 +, tincantech via Openvpn-users wrote: If you want your log-file to contain time-stamps then edit the file: /lib/systemd/system/openvpn-server@.service remove '--supress-timestamps' I cannot find such a file...

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-22 Thread David Sommerseth
On 18/06/2022 10:26, Bo Berglund wrote: On Wed, 15 Jun 2022 22:58:46 +0200, David Sommerseth wrote: [...snip...] But will journalctl work independently of the openvpn log option settings, like verbosity etc? I have this now in the two instance conf files: log /etc/openvpn/log/openvpn.log

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-22 Thread Bo Berglund
On Tue, 21 Jun 2022 01:52:48 -0400, Nathan Stratton Treadway wrote: >On Mon, Jun 20, 2022 at 08:51:47 +0200, Bo Berglund wrote: > >> Originally I used OpenVPN since around 2014 on RaspberryPi to access my home >> LAN. I did not have an Ubuntu server back then. >> Then in 2016 I built the Ubuntu

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-20 Thread Nathan Stratton Treadway
On Mon, Jun 20, 2022 at 08:51:47 +0200, Bo Berglund wrote: > Originally I used OpenVPN since around 2014 on RaspberryPi to access my home > LAN. I did not have an Ubuntu server back then. > Then in 2016 I built the Ubuntu server to handle a lot of other things too, > like > subversion and such,

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-20 Thread Bo Berglund
On Sun, 19 Jun 2022 18:10:14 -0400, Nathan Stratton Treadway wrote: >> I am not enough into Linux to get anything useful from this... >> Hopefully you can. > >Well, I don't know how much difference it will make for your overall >project, but this output shows that you are still running an old

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-19 Thread Nathan Stratton Treadway
On Sat, Jun 18, 2022 at 23:20:54 +0200, Bo Berglund wrote: > I looked in the file: > /usr/lib/systemd/system/openvpn-server@.service > > and it contains this: > [Service} > ExecStart=/usr/sbin/openvpn --status %t/openvpn-server/status-%i.log > --status-version 2 --suppress-timestamps --config

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-19 Thread Nathan Stratton Treadway
On Sun, Jun 19, 2022 at 23:03:15 +0200, Bo Berglund wrote: > I get this: > > dpkg -L openvpn | grep systemd.*openv > /lib/systemd/system-generators/openvpn-generator > /lib/systemd/system/openvpn.service > /lib/systemd/system/openvpn@.service > /usr/lib/systemd/system/openvpn-client@.service >

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-19 Thread Bo Berglund
On Sun, 19 Jun 2022 14:43:48 -0400, Nathan Stratton Treadway wrote: >On Sat, Jun 18, 2022 at 19:03:48 +0200, Bo Berglund wrote: >> On Sat, 18 Jun 2022 13:46:09 +, tincantech via Openvpn-users >> wrote: >> >If you want your log-file to contain time-stamps then edit the file: >>

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-19 Thread Nathan Stratton Treadway
On Sat, Jun 18, 2022 at 19:03:48 +0200, Bo Berglund wrote: > On Sat, 18 Jun 2022 13:46:09 +, tincantech via Openvpn-users > wrote: > >If you want your log-file to contain time-stamps then edit the file: > >/lib/systemd/system/openvpn-server@.service > >remove '--supress-timestamps' > > I

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-19 Thread tincantech via Openvpn-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, --- Original Message --- On Sunday, June 19th, 2022 at 06:35, Bo Berglund wrote: > On Sat, 18 Jun 2022 22:00:20 +, tincantech via Openvpn-users > openvpn-users@lists.sourceforge.net wrote: > > > You haven't found the file that

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-18 Thread tincantech via Openvpn-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, --- Original Message --- On Saturday, June 18th, 2022 at 22:20, Bo Berglund wrote: > On Sat, 18 Jun 2022 20:01:10 +, tincantech via Openvpn-users > openvpn-users@lists.sourceforge.net wrote: > > > > > If you want your log-file

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-18 Thread Bo Berglund
On Sat, 18 Jun 2022 20:01:10 +, tincantech via Openvpn-users wrote: >> > If you want your log-file to contain time-stamps then edit the file: >> > /lib/systemd/system/openvpn-server@.service >> > remove '--supress-timestamps' >> >> >> I cannot find such a file... > >Well, you now know the

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-18 Thread tincantech via Openvpn-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, --- Original Message --- On Saturday, June 18th, 2022 at 18:03, Bo Berglund wrote: > On Sat, 18 Jun 2022 13:46:09 +, tincantech via Openvpn-users > openvpn-users@lists.sourceforge.net wrote: > > > -BEGIN PGP SIGNED

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-18 Thread Bo Berglund
On Sat, 18 Jun 2022 13:46:09 +, tincantech via Openvpn-users wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA256 > >Hi, > >--- Original Message --- >On Saturday, June 18th, 2022 at 09:26, Bo Berglund >wrote: > > > >> The way I did that: >> >> 1) sudo systemctl stop openvpn >>

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-18 Thread tincantech via Openvpn-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, --- Original Message --- On Saturday, June 18th, 2022 at 09:26, Bo Berglund wrote: > The way I did that: > > 1) sudo systemctl stop openvpn > sudo systemctl stop openvpn@server.service > sudo systemctl stop

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-18 Thread Bo Berglund
On Wed, 15 Jun 2022 22:58:46 +0200, David Sommerseth wrote: >So in other words: On a systemd enabled system, using the "log" option >is not optimal. Does this mean that I should completely remove the log entries in the conf files or somehow use some specific entry that stops it from logging?

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-15 Thread David Sommerseth
On 15/06/2022 16:48, Bo Berglund wrote: On Wed, 15 Jun 2022 14:00:52 +, tincantech via Openvpn-users wrote: I have scanned the documentation for OpenVPN: https://openvpn.net/community-resources/reference-manual-for-openvpn-2-4/ But I do not find a setting that will swichh ON timetsmps

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-15 Thread Bo Berglund
On Wed, 15 Jun 2022 14:00:52 +, tincantech via Openvpn-users wrote: > >> I have scanned the documentation for OpenVPN: >> https://openvpn.net/community-resources/reference-manual-for-openvpn-2-4/ >> >> But I do not find a setting that will swichh ON timetsmps in log lines. >> >> There are

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-15 Thread tincantech via Openvpn-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, alternatively, you can view the log file with `journalctl`. This will then include timestamps from the journal. Something like `journalctl -u openvpn-server01` Regards Sent with Proton Mail secure email. --- Original Message --- On

Re: [Openvpn-users] How to enable timestamps in server logfile?

2022-06-15 Thread tincantech via Openvpn-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, this is a setting in the openvpn systemd unit file. The setting to remove is --suppress-timestamps from the 'ExecStart=' line. Regards Sent with Proton Mail secure email. --- Original Message --- On Wednesday, June 15th, 2022 at