# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.enclaive.cloud/vault/cli/monitor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
