[GH-ISSUE #761] no IP address in log file #521

Closed
opened 2026-03-03 01:30:09 +03:00 by kerem · 1 comment
Owner

Originally created by @VooZ2 on GitHub (Dec 7, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/761

Hi,

I'm trying to run fail2ban from WIKI. With /admin page it works, logs are with IP address:

[2019-12-07 14:54:04][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: 188.69.198.226
[2019-12-07 14:54:05][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: 188.69.198.226
[2019-12-07 14:54:06][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: 188.69.198.226

But for vault failed attempts logs don't have IP address and fail2ban doesn't work:

[2019-12-07 15:00:52][error][ERROR] Username or password is incorrect. Try again
[2019-12-07 15:00:53][error][ERROR] Username or password is incorrect. Try again
[2019-12-07 15:00:54][error][ERROR] Username or password is incorrect. Try again
[2019-12-07 15:06:08][error][ERROR] Username or password is incorrect. Try again

Where I made mistake and how to fix it?

Version: 1.13.0-a03db6d2

Originally created by @VooZ2 on GitHub (Dec 7, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/761 Hi, I'm trying to run fail2ban from WIKI. With /admin page it works, logs are with IP address: [2019-12-07 14:54:04][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: 188.69.198.226 [2019-12-07 14:54:05][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: 188.69.198.226 [2019-12-07 14:54:06][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: 188.69.198.226 But for vault failed attempts logs don't have IP address and fail2ban doesn't work: [2019-12-07 15:00:52][error][ERROR] Username or password is incorrect. Try again [2019-12-07 15:00:53][error][ERROR] Username or password is incorrect. Try again [2019-12-07 15:00:54][error][ERROR] Username or password is incorrect. Try again [2019-12-07 15:06:08][error][ERROR] Username or password is incorrect. Try again Where I made mistake and how to fix it? Version: 1.13.0-a03db6d2
kerem closed this issue 2026-03-03 01:30:10 +03:00
Author
Owner

@dani-garcia commented on GitHub (Dec 7, 2019):

Oops that was my mistake in the latest changes to logging, I added it back again and it should show in all the new builds. Thanks for mentioning it!

<!-- gh-comment-id:562852196 --> @dani-garcia commented on GitHub (Dec 7, 2019): Oops that was my mistake in the latest changes to logging, I added it back again and it should show in all the new builds. Thanks for mentioning it!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#521
No description provided.