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.
Stop OpenVPN from creating ANY log files
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Oct 20, 2020 6:13 am
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Oct 20, 2020 6:13 am
Re: Stop OpenVPN from creating ANY log files
No one knows???
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Oct 20, 2020 6:13 am
Re: Stop OpenVPN from creating ANY log files
???????????????
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Oct 20, 2020 6:13 am
Re: Stop OpenVPN from creating ANY log files
I see that this forum sure is useful...
-
- OpenVpn Newbie
- Posts: 1
- Joined: Tue Dec 08, 2020 12:39 am
Re: Stop OpenVPN from creating ANY log files
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.)
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.)
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Stop OpenVPN from creating ANY log files
This only redirects the log file (on *nix) but it does not stop it being generated.openvpn@iment.com wrote: ↑Tue Dec 08, 2020 1:10 amI haven't tried this myself, but adding the following line to the config file should work.
log /dev/null