> For the complete documentation index, see [llms.txt](https://docs.enclaive.cloud/vault/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enclaive.cloud/vault/cli/monitor.md).

# monitor

The `monitor` command shows a real time display of the server logs of a Vault server. This command accepts a log level as an argument, which can be different from the log level that the Vault server was started with.

The `monitor` command honors the `VAULT_ADDR` environment variable. The address specified determines the target server that will be monitored.

Note that this command is designed to run indefinitely. It is similar to `tail -f` in the Unix world. This command will not exit on its own unless it encounters an unexpected error. As a user, you must terminate this process yourself to shut it down.

If Vault is emitting log messages faster than a receiver can process them, the some log lines will be dropped.

### Examples <a href="#examples" id="examples"></a>

Monitor server logs at the `debug` log level:

```shell-session
$ vault monitor -log-level=debug
```

### Usage <a href="#usage" id="usage"></a>

The following flags are available in addition to the standard set of flags included on all commands.

#### Output options <a href="#output-options" id="output-options"></a>

* `-log-level` `(string: "info")` - Monitor the Vault server at this log level. Valid log levels are (in order of detail) "trace", "debug", "info", "warn", "error". If this option is not specified, "info" is used.
* `-log-format` `(string: "standard")` - Format to emit logs. Valid formats are "standard", and "json". If this option is not specified, "standard" is used.
