Save logs to a file #28

Closed
opened 2026-02-04 16:18:55 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @dani-garcia on GitHub (Jul 8, 2018).

From #58:

it would be nice to have the logs sent to a file rather than the console, that would make it easier to debug and also allow people to use a logging system like ELK to potentially track metrics.

The current logging is due to the web framework we use, Rocket. At the moment Rocket doen't support configuring the logging, but I know it's in the roadmap for future versions.

Originally created by @dani-garcia on GitHub (Jul 8, 2018). From #58: > it would be nice to have the logs sent to a file rather than the console, that would make it easier to debug and also allow people to use a logging system like ELK to potentially track metrics. > The current logging is due to the web framework we use, Rocket. At the moment Rocket doen't support configuring the logging, but I know it's in the roadmap for future versions.
OVERLORD added the enhancement label 2026-02-04 16:18:55 +03:00
Author
Owner

@ptman commented on GitHub (Aug 2, 2018):

Some ways to achieve this are: run under systemd so that output is captured by journal or pipe to logger:

./bitwarden_rs 2>&1| logger -s -t bitwarden
@ptman commented on GitHub (Aug 2, 2018): Some ways to achieve this are: run under systemd so that output is captured by journal or pipe to logger: ./bitwarden_rs 2>&1| logger -s -t bitwarden
Author
Owner

@campZero commented on GitHub (Aug 5, 2018):

I run the container under unRAID, how could I implement this or is this to be done from "outside" of the container ?

@campZero commented on GitHub (Aug 5, 2018): I run the container under unRAID, how could I implement this or is this to be done from "outside" of the container ?
Author
Owner

@mprasil commented on GitHub (Aug 5, 2018):

Docker container logs to stdout, so docker daemon should be able to capture those. Not sure if unraid has some interface to capture and show those logs?

@mprasil commented on GitHub (Aug 5, 2018): Docker container logs to stdout, so docker daemon should be able to capture those. Not sure if unraid has some interface to capture and show those logs?
Author
Owner

@ptman commented on GitHub (Aug 5, 2018):

@campZero take a look at the --log-driver option to docker run

@ptman commented on GitHub (Aug 5, 2018): @campZero take a look at the `--log-driver` option to `docker run`
Author
Owner

@campZero commented on GitHub (Aug 5, 2018):

@mprasil: Well the docker.log file stays empty, unraid can show the log of bitwarden, but in this log there is no evidence of an unseccessful login attempt, it's just all kinds of GET this and POST that, so fail2ban could not capture possible bruteforce attempts (which in my case is what I'm trying to achieve.)

@ptman: it's run under unRAID, I don't manually start these containers and I am not sure how to pass the parameter in the template. Anyway, it seems these logs do not contain what I need, anyway.

I would need a file that I could expose to the letsencrypt container which houses the fail2ban for the reverse proxy, so the file would need to be on the unRAID or in the /data folder of bitwarden, but looking at the docker container layout is ancient greek in reverse to me, sadly.

@campZero commented on GitHub (Aug 5, 2018): @mprasil: Well the docker.log file stays empty, unraid can show the log of bitwarden, but in this log there is no evidence of an unseccessful login attempt, it's just all kinds of GET this and POST that, so fail2ban could not capture possible bruteforce attempts (which in my case is what I'm trying to achieve.) @ptman: it's run under unRAID, I don't manually start these containers and I am not sure how to pass the parameter in the template. Anyway, it seems these logs do not contain what I need, anyway. I would need a file that I could expose to the letsencrypt container which houses the fail2ban for the reverse proxy, so the file would need to be on the unRAID or in the /data folder of bitwarden, but looking at the docker container layout is ancient greek in reverse to me, sadly.
Author
Owner

@dani-garcia commented on GitHub (Nov 9, 2018):

To keep the issue tracker more focused, I'm closing this issue in favor of the meta issue at #246.

@dani-garcia commented on GitHub (Nov 9, 2018): To keep the issue tracker more focused, I'm closing this issue in favor of the meta issue at #246.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#28