INFO level for auth log #8343

Closed
opened 2025-12-29 20:35:35 +01:00 by adam · 4 comments
Owner

Originally created by @dmgeurts on GitHub (Jul 17, 2023).

NetBox version

v3.5.1

Feature type

Change to existing functionality

Proposed functionality

The django_auth_logging only supports the DEBUG level. Limiting the logging to auth success or failure would be great, rather than all the LDAP DEBUG detail.

Currently, I'm interested in logging failed auth attempts. LDAP is working fine, so I have no need for DEBUG-level logs.

Use case

Reduce the volume of logging to what is required when tracking an audit trail as opposed to full DLAP debugging.

Database changes

n/a

External dependencies

LDAP authentication.

Originally created by @dmgeurts on GitHub (Jul 17, 2023). ### NetBox version v3.5.1 ### Feature type Change to existing functionality ### Proposed functionality The django_auth_logging only supports the DEBUG level. Limiting the logging to auth success or failure would be great, rather than all the LDAP DEBUG detail. Currently, I'm interested in logging failed auth attempts. LDAP is working fine, so I have no need for DEBUG-level logs. ### Use case Reduce the volume of logging to what is required when tracking an audit trail as opposed to full DLAP debugging. ### Database changes n/a ### External dependencies LDAP authentication.
adam added the type: feature label 2025-12-29 20:35:35 +01:00
adam closed this issue 2025-12-29 20:35:35 +01:00
Author
Owner

@abhi1693 commented on GitHub (Jul 18, 2023):

Is this what you are looking for?

https://github.com/netbox-community/netbox/blob/develop/netbox/users/signals.py

@abhi1693 commented on GitHub (Jul 18, 2023): Is this what you are looking for? https://github.com/netbox-community/netbox/blob/develop/netbox/users/signals.py
Author
Owner

@dmgeurts commented on GitHub (Jul 18, 2023):

Is this what you are looking for?

https://github.com/netbox-community/netbox/blob/develop/netbox/users/signals.py

Yes, 100%, thank you. No harm in also logging successful logins but at a minimum the failed logins are essential for logging to Elastic/Splunk/etc.

@dmgeurts commented on GitHub (Jul 18, 2023): > Is this what you are looking for? > > https://github.com/netbox-community/netbox/blob/develop/netbox/users/signals.py Yes, 100%, thank you. No harm in also logging successful logins but at a minimum the failed logins are essential for logging to Elastic/Splunk/etc.
Author
Owner

@DanSheps commented on GitHub (Jul 19, 2023):

Do you need this FR anymore then since it appears to be logged?

@DanSheps commented on GitHub (Jul 19, 2023): Do you need this FR anymore then since it appears to be logged?
Author
Owner

@jeremystretch commented on GitHub (Jul 26, 2023):

I'm going to close this out as there's been no further response.

@jeremystretch commented on GitHub (Jul 26, 2023): I'm going to close this out as there's been no further response.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8343