github.com/outbrain/consul@v1.4.5/website/source/docs/commands/monitor.html.markdown.erb (about) 1 --- 2 layout: "docs" 3 page_title: "Commands: Monitor" 4 sidebar_current: "docs-commands-monitor" 5 description: |- 6 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. 7 --- 8 9 # Consul Monitor 10 11 Command: `consul monitor` 12 13 The `monitor` command is used to connect and follow the logs of a running 14 Consul agent. Monitor will show the recent logs and then continue to follow 15 the logs, not exiting until interrupted or until the remote agent quits. 16 17 The power of the monitor command is that it allows you to log the agent 18 at a relatively high log level (such as "warn"), but still access debug 19 logs and watch the debug logs if necessary. 20 21 ## Usage 22 23 Usage: `consul monitor [options]` 24 25 #### API Options 26 27 <%= partial "docs/commands/http_api_options_client" %> 28 29 #### Command Options 30 31 * `-log-level` - The log level of the messages to show. By default this 32 is "info". This log level can be more verbose than what the agent is 33 configured to run at. Available log levels are "trace", "debug", "info", 34 "warn", and "err".