Skip to main content

Tutorial: Turn Off Audit and Service Logging

Abstract

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.

  1. Sign on to the console and get root privileges.

  2. Open the as.conf file for editing:

    nano /usr/local/openvpn_as/etc/as.conf
  3. Comment out the log DB line:

    # log_db=...
  4. Save and exit by pressing Ctrl + x, then y.

  5. 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."

  1. Sign on to the console and get root privileges.

  2. Open the as.conf file for editing:

    nano /usr/local/openvpn_as/etc/as.conf
  3. Add the following line:

    log.disable_logging=true
  4. Save and exit by pressing Ctrl+x, then y.

  5. Restart the Acess Server service:

    service openvpnas restart