---
title: 'Tutorial: Turn Off Audit and Service Logging'
canonical: https://openvpn.net/as-docs/tutorials/tutorial--turn-off-logging/
product: Access Server Docs
description: This tutorial shows how to turn off Access Server's audit and service logging.
---

# Tutorial: Turn Off 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.

To completely turn off logging, 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.

## Prerequisites

- An installed Access Server 2.12 and newer.
- Root access to the console.

## Option 1: Turn off audits

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:

   ```
   systemctl restart openvpnas
   ```

   - This turns off audits. The **Log Reports** page in the Admin Web UI displays, "Logging is disabled in as.conf."

## Option 2: Turn off service logging

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:

   ```
   systemctl restart openvpnas
   ```

---

Prev: [Tutorial: How To Log To Syslog](https://openvpn.net/as-docs/tutorials/tutorial--syslog.md)
Next: [Tutorial: How To Use Debug Flags](https://openvpn.net/as-docs/tutorials/tutorial--debug-flags.md)
Index: https://openvpn.net/as-docs/llms.txt
