Tutorial: Turn Off Audit and Service Logging
This tutorial shows how to turn off Access Server's audit and service logging.
Overview
Access Server 2.12 and newer support turning off audit and service logging. You can turn them off separately or together. When you turn off logging, it doesn't delete previous log files or the records in log.db but no longer records new activity.
If you want to turn off logging completely, you must apply both options below.
Important
If you choose to turn off logging, you will not have logs to refer to or send to support if you encounter issues.
An installed Access Server 2.12 and newer.
Root access to the console.
Sign on to the console and get root privileges.
Open the as.conf file for editing:
nano /usr/local/openvpn_as/etc/as.conf
Comment out the log DB line:
# log_db=...
Save and exit by pressing Ctrl + x, then y.
Restart the Access Server service:
service openvpnas restart
This turns off audits. The Log Reports page in the Admin Web UI displays, "Logging is disabled in as.conf."
Sign on to the console and get root privileges.
Open the as.conf file for editing:
nano /usr/local/openvpn_as/etc/as.conf
Add the following line:
log.disable_logging=true
Save and exit by pressing Ctrl+x, then y.
Restart the Acess Server service:
service openvpnas restart