8ae3332165
- moved and renamed files/folders based on new structure - updated docs navigation based on new structure - moved CLI to top nav (created commands.jsx and commands-navigation.js) - updated and added redirects - updating to be consistent with standalone categories - changing "overview" link in top nav to lead to where intro was moved (docs/intro) - adding redirects for intro content - deleting old intro folders - format all data/navigation files - deleting old commands folder - reverting changes to glossary page - adjust intro navigation for removal of 'vs' paths - add helm page redirect - fix more redirects - add a missing redirect - fix broken anchor links and formatting mistakes - deleted duplicate section, added redirect, changed link - removed duplicate glossary page
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
---
|
|
layout: commands
|
|
page_title: 'Commands: Monitor'
|
|
sidebar_title: monitor
|
|
description: >-
|
|
The `monitor` command is used to connect and follow the logs of a running
|
|
Consul agent. Monitor will show the recent logs and then continue to follow
|
|
the logs, not exiting until interrupted or until the remote agent quits.
|
|
---
|
|
|
|
# Consul Monitor
|
|
|
|
Command: `consul monitor`
|
|
|
|
The `monitor` command is used to connect and follow the logs of a running
|
|
Consul agent. Monitor will show the recent logs and then continue to follow
|
|
the logs, not exiting until interrupted or until the remote agent quits.
|
|
|
|
The power of the monitor command is that it allows you to log the agent
|
|
at a relatively high log level (such as "warn"), but still access debug
|
|
logs and watch the debug logs if necessary.
|
|
|
|
## Usage
|
|
|
|
Usage: `consul monitor [options]`
|
|
|
|
#### API Options
|
|
|
|
@include 'http_api_options_client.mdx'
|
|
|
|
#### Command Options
|
|
|
|
- `-log-level` - The log level of the messages to show. By default this
|
|
is "info". This log level can be more verbose than what the agent is
|
|
configured to run at. Available log levels are "trace", "debug", "info",
|
|
"warn", and "err".
|
|
- `-log-json` - Toggles whether the messages are streamed in JSON format.
|
|
By default this is false.
|