Consul
Log agent behavior
This page describes the process to output a log of the Consul agent's behavior.
Overview
First, make sure your user has write permissions in the Consul data directory.
$ sudo chmod g+w /opt/consul/
Then start the Consul process. By default the Consul agent outputs logs to the open terminal. To start the agent without locking the terminal and output to a log instead, run the following command.
$ consul agent -config-dir=/etc/consul.d/ > /tmp/consul-server.log 2>&1 &