Page 1 of 1

Reduce log size and detail

Posted: Tue Oct 18, 2022 2:12 pm
by xeonz
By the way, is it any way to reduce log size and detail? I am getting openvpnas.log rotation every 15-20 sec and it looks like this:

Code: Select all

-rw-r--r--. 1 root   root    1000102 Oct 18 14:37 openvpnas.log.960
-rw-r--r--. 1 root   root    1000087 Oct 18 14:37 openvpnas.log.961
-rw-r--r--. 1 root   root    1000122 Oct 18 14:37 openvpnas.log.962
-rw-r--r--. 1 root   root    1000160 Oct 18 14:37 openvpnas.log.963
-rw-r--r--. 1 root   root    1000077 Oct 18 14:36 openvpnas.log.964
-rw-r--r--. 1 root   root    1000038 Oct 18 14:36 openvpnas.log.965
-rw-r--r--. 1 root   root    1000319 Oct 18 14:36 openvpnas.log.966
-rw-r--r--. 1 root   root    1000076 Oct 18 14:36 openvpnas.log.967
-rw-r--r--. 1 root   root    1000042 Oct 18 14:35 openvpnas.log.968
-rw-r--r--. 1 root   root    1000115 Oct 18 14:35 openvpnas.log.969

Re: Reduce log size and detail

Posted: Tue Oct 18, 2022 3:05 pm
by openvpn_inc
Hello xeonz,

You can;
- increase the size at which AS splits off the log files, to reduce the amount of files generated
- set up a rotation job in your operating system's log daemon to archive/delete older logs
- set AS to log to syslog, and rely on the usually already present log rotation of syslog
- set AS to log to syslog, and forward that to another logging solution, where you can there deal with it

This page contains all the relevant information:
https://openvpn.net/vpn-server-resource ... ss-server/

Kind regards,
Johan