2017-09-08 02:06:34 +00:00
|
|
|
---
|
2020-01-18 00:18:09 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: audit disable - Command
|
|
|
|
sidebar_title: <code>disable</code>
|
2017-09-08 02:06:34 +00:00
|
|
|
description: |-
|
|
|
|
The "audit disable" command disables an audit device at a given path, if one
|
|
|
|
exists. This command is idempotent, meaning it succeeds even if no audit
|
|
|
|
device is enabled at the path.
|
|
|
|
---
|
|
|
|
|
|
|
|
# audit disable
|
|
|
|
|
|
|
|
The `audit disable` command disables an audit device at a given path, if one
|
|
|
|
exists. This command is idempotent, meaning it succeeds even if no audit device
|
|
|
|
is enabled at the path.
|
|
|
|
|
|
|
|
Once an audit device is disabled, no future audit logs are dispatched to it. The
|
|
|
|
data associated with the audit device is unaffected. For example, if you
|
|
|
|
disabled an audit device that was logging to a file, the file would still exist
|
|
|
|
and have stored contents.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Disable the audit device enabled at "file/":
|
|
|
|
|
2020-05-21 17:18:17 +00:00
|
|
|
```shell-session
|
2017-09-08 02:06:34 +00:00
|
|
|
$ vault audit disable file/
|
|
|
|
Success! Disabled audit device (if it was enabled) at: file/
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2020-01-22 20:05:41 +00:00
|
|
|
There are no flags beyond the [standard set of flags](/docs/commands)
|
2017-09-08 02:06:34 +00:00
|
|
|
included on all commands.
|