mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 15:11:07 +02:00
* Update README Let contributors know that docs will now be located in UDR * Add comments to each mdx doc Comment has been added to all mdx docs that are not partials * chore: added changelog changelog check failure * wip: removed changelog * Fix content errors * Doc spacing * Update website/content/docs/deploy/kubernetes/vso/helm.mdx Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com> --------- Co-authored-by: jonathanfrappier <92055993+jonathanfrappier@users.noreply.github.com> Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
82 lines
1.7 KiB
Plaintext
82 lines
1.7 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: 'monitor - Vault CLI'
|
|
description: >-
|
|
Use vault monitor to stream server logs to stdout in real time.
|
|
---
|
|
|
|
> [!IMPORTANT]
|
|
> **Documentation Update:** Product documentation, which were located in this repository under `/website`, are now located in [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs), colocated with all other product documentation. Contributions to this content should be done in the `web-unified-docs` repo, and not this one. Changes made to `/website` content in this repo will not be reflected on the developer.hashicorp.com website.
|
|
|
|
# `monitor`
|
|
|
|
Stream Vault server logs in real-time to `stdout`.
|
|
|
|
<CodeBlockConfig hideClipboard>
|
|
|
|
```shell-session
|
|
$ vault monitor [flags]
|
|
|
|
$ vault monitor [-help | -h]
|
|
```
|
|
|
|
</CodeBlockConfig>
|
|
|
|
## Description
|
|
|
|
`vault monitor` streams Vault server logs to `stdout` in real time based on the
|
|
address stored in `VAULT_ADDR` or passed through `-address`. Use the
|
|
`-log-level` flag to override the default log level set for the Vault server.
|
|
|
|
<Tip title="Related API endpoints">
|
|
|
|
MonitorLogs - [`GET: /sys/monitor`](/vault/api-docs/system/monitor)
|
|
|
|
</Tip>
|
|
|
|
|
|
### Limitations and warnings
|
|
|
|
- `vault monitor` runs indefinitely and only exits if an unexpected error occurs.
|
|
|
|
- `vault monitor` may drop log lines if Vault is emitting log messages faster
|
|
than the receiver can process the input.
|
|
|
|
|
|
|
|
## Command arguments
|
|
|
|
None.
|
|
|
|
## Command options
|
|
|
|
None.
|
|
|
|
## Command flags
|
|
|
|
<br />
|
|
|
|
@include 'cli/shared/flags/log-level.mdx'
|
|
|
|
<br /><hr /><br />
|
|
|
|
@include 'cli/shared/flags/log-format.mdx'
|
|
|
|
|
|
|
|
|
|
## Standard flags
|
|
|
|
@include 'cli/standard-settings/all-standard-flags.mdx'
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
Stream server logs at the `debug` log level:
|
|
|
|
```shell-session
|
|
$ vault monitor -log-level=debug
|
|
```
|