Disable uWSGI logging by default #9625

Closed
opened 2025-12-29 21:19:56 +01:00 by adam · 3 comments
Owner

Originally created by @markkuleinio on GitHub (May 8, 2024).

Originally assigned to: @markkuleinio on GitHub.

NetBox version

v4.0.0

Feature type

Change to existing functionality

Proposed functionality

Currently the NetBox-default uWSGI configuration causes all requests to be logged in uWSGI level, in addition to the normal reverse proxy level, thus consuming the journal log in systemd configuration.

I propose defaulting to uWSGI request logging disabled, while still logging application errors.

Use case

Current uWSGI request logging consumes the systemd journal log capacity, possibly causing other application logs to purge when journal log limits are exceeded.

Since the default NetBox installation already logs the requests in the reverse proxy logs, uWSGI-level logging can be limited to error logging only.

If someone needs the uWSGI logging as well, they can easily change the configuration setting present in the default NetBox uwsgi.ini.

Database changes

None

External dependencies

None

Originally created by @markkuleinio on GitHub (May 8, 2024). Originally assigned to: @markkuleinio on GitHub. ### NetBox version v4.0.0 ### Feature type Change to existing functionality ### Proposed functionality Currently the NetBox-default uWSGI configuration causes all requests to be logged in uWSGI level, in addition to the normal reverse proxy level, thus consuming the journal log in systemd configuration. I propose defaulting to uWSGI request logging disabled, while still logging application errors. ### Use case Current uWSGI request logging consumes the systemd journal log capacity, possibly causing other application logs to purge when journal log limits are exceeded. Since the default NetBox installation already logs the requests in the reverse proxy logs, uWSGI-level logging can be limited to error logging only. If someone needs the uWSGI logging as well, they can easily change the configuration setting present in the default NetBox `uwsgi.ini`. ### Database changes None ### External dependencies None
adam added the status: acceptedtype: documentation labels 2025-12-29 21:19:56 +01:00
adam closed this issue 2025-12-29 21:19:56 +01:00
Author
Owner

@markkuleinio commented on GitHub (May 8, 2024):

If this is accepted, I can submit the PR.

@markkuleinio commented on GitHub (May 8, 2024): If this is accepted, I can submit the PR.
Author
Owner

@jeremystretch commented on GitHub (May 8, 2024):

@markkuleinio sounds reasonable. I've assigned this to you. (Also reclassified this as a documentation change as the reference uWSGI config isn't part of the NetBox code base.)

@jeremystretch commented on GitHub (May 8, 2024): @markkuleinio sounds reasonable. I've assigned this to you. (Also reclassified this as a documentation change as the reference uWSGI config isn't part of the NetBox code base.)
Author
Owner

@markkuleinio commented on GitHub (May 8, 2024):

Thanks. I was going to add the config lines to the end of uwsgi.ini, but I already have https://github.com/netbox-community/netbox/pull/16035 touching the same position, so I'll hold this for now.

@markkuleinio commented on GitHub (May 8, 2024): Thanks. I was going to add the config lines to the end of `uwsgi.ini`, but I already have https://github.com/netbox-community/netbox/pull/16035 touching the same position, so I'll hold this for now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9625