Page 1 of 1

Stop OpenVPN from creating ANY log files

Posted: Tue Oct 20, 2020 6:20 am
by Random
Hello,

How do I stop OpenVPN from creating any log files at all?

I have searched and found some suggestions for config file arguments that limit the logging but each time a connection is made the log file is still generated and I have not found a solution that stops log files from being created all together.

Thanks in advance.

Re: Stop OpenVPN from creating ANY log files

Posted: Wed Oct 21, 2020 5:15 am
by Random
No one knows???

Re: Stop OpenVPN from creating ANY log files

Posted: Thu Oct 22, 2020 10:44 am
by Random
???????????????

Re: Stop OpenVPN from creating ANY log files

Posted: Fri Oct 23, 2020 10:52 am
by Random
I see that this forum sure is useful...

Re: Stop OpenVPN from creating ANY log files

Posted: Tue Dec 08, 2020 1:10 am
by openvpn@iment.com
I haven't tried this myself, but adding the following line to the config file should work.

log /dev/null

This option can also be used on the command line that starts openvpn (as long as it is prefixed by two dashes, as in "--log /dev/null").

Also, any left-over "log-append" option(s) should be replaced by the simple "log" option.

Note that openvpn must be restarted for logging to be stopped. (The older log files will not automatically be erased.)

Re: Stop OpenVPN from creating ANY log files

Posted: Tue Dec 08, 2020 1:43 am
by TinCanTech
Random wrote:
Tue Oct 20, 2020 6:20 am
How do I stop OpenVPN from creating any log files at all?
openvpn@iment.com wrote:
Tue Dec 08, 2020 1:10 am
I haven't tried this myself, but adding the following line to the config file should work.

log /dev/null
This only redirects the log file (on *nix) but it does not stop it being generated.