log-append or something similar

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
bon_go
OpenVpn Newbie
Posts: 1
Joined: Fri Feb 09, 2024 3:05 pm

log-append or something similar

Post by bon_go » Fri Feb 09, 2024 3:38 pm

Hello,

I'm looking for a way to keep the connection log with the current Windows OpenVPN GUI client. The current situation is that every time you start establishing a VPN connection, the client's protocol is overwritten. The log-append option in the .ovpn configuration file does not change this.

The only solution I currently have is to start the client manually with the --log-append option from a command line or to start a script with an up or down in the configuration file, which somehow saves the log file but doesn't always work reliably.

It would be ideal if a new log file was created every time a connection is established. But it doesn't work that way.

Am I missing something or are there other ways to solve the problem?

tunnel_friend
OpenVpn Newbie
Posts: 1
Joined: Tue Sep 24, 2024 6:17 am

Re: log-append or something similar

Post by tunnel_friend » Tue Sep 24, 2024 6:50 am

Not sure how it works on Windows, but on Linux the output is piped to /var/log/syslog, provided that --log-append is not invoked, where it can easily be grepped with a regex. This way it won't be overwritten and you can control it.

Post Reply