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
uwsgi.d/conf.yaml file in the root of your Agent’s configuration directory.
Available for Agent version >6.0
Collecting logs is disabled by default in the Datadog Agent. Enable it in your
datadog.yaml file with:
Then add this configuration block to your
uwsgi.d/conf.yaml file to start collecting your logs:
logs: - type: file path: /var/log/uwsgi/uwsgi.log service: "<MY_APPLICATION>" source: uwsgi
Finally, restart the agent.
Need help? Contact Datadog Support.