Make it possible to log failed login attempts #7110

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

Originally created by @K4pper on GitHub (Oct 14, 2022).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.2.9

Feature type

New functionality

Proposed functionality

I would like to have netbox log every login attempt that is made, however this doesn't seem possible, i currently have this logging config

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'handlers': {
        'console': {
            'class': 'logging.StreamHandler',
        },
    },
    'loggers': {
        'netobx.*': {
        'handlers': ['console'],
        'level': 'INFO',
        }
    },
}

This config logs every time a user logs in successfully but not when a user fails to authenticate.

Use case

This would make it possible to see if netbox is currently being bruteforced, this would be especially helpful to deployments in the cloud where it is accessible to the web.

Database changes

N/A

External dependencies

N/A

Originally created by @K4pper on GitHub (Oct 14, 2022). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.2.9 ### Feature type New functionality ### Proposed functionality I would like to have netbox log every login attempt that is made, however this doesn't seem possible, i currently have this logging config ``` LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'console': { 'class': 'logging.StreamHandler', }, }, 'loggers': { 'netobx.*': { 'handlers': ['console'], 'level': 'INFO', } }, } ``` This config logs every time a user logs in successfully but not when a user fails to authenticate. ### Use case This would make it possible to see if netbox is currently being bruteforced, this would be especially helpful to deployments in the cloud where it is accessible to the web. ### Database changes N/A ### External dependencies N/A
adam added the type: featurestatus: under review labels 2025-12-29 20:19:21 +01:00
adam closed this issue 2025-12-29 20:19:21 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7110