How to get more logging from the agent?

When hitting an issue you / Datadog support might need more logging from the Datadog agent to investigate on the possible causes.


To enable the full debug mode:

- modify your local datadog.conf (see this page to locate this configuration file on your instance)

- replace "# log_level: INFO" with "log_level: DEBUG" (make sure to get rid of # to uncomment the line)

- restart your datadog agent (see that page to find the restart command depending on your OS)

- wait a few minutes to generate some logs


Look here to find the location of the logs.

Have more questions? Submit a request


  • 0
    Ian Bucad

     Use below command to quickly set log_level to DEBUG. Agent must still be restarted for the changes to take effect.



    sudo sh -c "sed -i 's/.*log_level:.*/log_level: DEBUG/' /etc/dd-agent/datadog.conf"



    sudo sh -c "sed -i 's/.*log_level:.*/log_level: debug/' /etc/datadog-agent/datadog.yaml"
Please sign in to leave a comment.
Powered by Zendesk