---
title: 'Tutorial: Turn Off Audit and Service Logging'
canonical: https://openvpn.net/as-docs/v3/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 allows 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.
- 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
   ```

## 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: Set Up a Log File Rotation](https://openvpn.net/as-docs/v3/tutorials/tutorial--log-rotation.md)
Next: [Tutorial: How to Use Debug Flags](https://openvpn.net/as-docs/v3/tutorials/tutorial--debug-flags.md)
Index: https://openvpn.net/as-docs/llms.txt
