Consul GET agent configuration

Wondering if consul agent provides a REST api to display all the agent configuration it was started with ?

I wanted to check if the running agent has log_rotate_duration enabled and if so how long.

Appreciate a reply.


For the local agent you can use the /agent/self path.

curl -s http://localhost:8500/v1/agent/self | jq -r .DebugConfig.LogRotateDuration
1 Like