Supported OS Linux Mac OS Windows


Collect uWSGI logs in order to track requests per second, bytes served, request status (2xx, 3xx, 4xx, 5xx), service uptime, slowness, and more.



Install the agent on the instance that runs the uWSGI server.


By default uWSGI server logs to stdout. Run the following command to start logging to a file or follow uWSGI instructions to log to a file:

uwsgi --socket :3031 --logger file:logfile=/var/log/uwsgi/uwsgi.log,maxsize=2000000

Create the uwsgi.d/conf.yaml file in the root of your Agent’s configuration directory.

Log collection

Available for Agent versions >6.0

Collecting logs is disabled by default in the Datadog Agent. Enable it in your datadog.yaml file with:

logs_enabled: true

Then add this configuration block to your uwsgi.d/conf.yaml file to start collecting your logs:

    - type: file
      path: /var/log/uwsgi/uwsgi.log
      service: '<MY_APPLICATION>'
      source: uwsgi

Finally, restart the agent.

By default the Datadog-uWSGI integration supports the default uWSGI log format and the Apache-like combined format.


Need help? Contact Datadog Support.