Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting logs in /var/log/syslog #3006

Open
2 tasks done
TomHeim29 opened this issue Jan 21, 2025 · 4 comments
Open
2 tasks done

Getting logs in /var/log/syslog #3006

TomHeim29 opened this issue Jan 21, 2025 · 4 comments
Labels

Comments

@TomHeim29
Copy link

Checklist

❓ Question

Hello again :)

How can I check all audit logs from push creation, delete, ... directly in the /var/log/syslog on the machine where the docker compose is running ?

I have looked for these logs everywhere but i can't find them

@pglombardo
Copy link
Owner

pglombardo commented Jan 23, 2025

Hi @TomHeim29 - Audit logs are an in-app feature. They can be retrieved via the JSON API:

@TomHeim29
Copy link
Author

Hello, thanks for your reply.

Is it possible to get all audit log for any push by being admin ? I just tested what you send me, and I only can get audit log from my pushes, not others.

I think i wasn't clear on my demand. When i check logs of the docker compose : sudo docker compose logs -f
There are no logs when a push is generated or deleted, is there a way to have these logs directly ?

@pglombardo
Copy link
Owner

Is it possible to get all audit log for any push by being admin ? I just tested what you send me, and I only can get audit log from my pushes, not others.

In short, not possible right now. The OSS version doesn't support teams & collaboration so you can only access audit logs of your own pushes.

If you are an admin, you could grab the authentication_token from that user account and then use the JSON API to retrieve the Audit log but it's kind of a hassle.

If I may ask, what are you trying to achieve? What's the goal?

I think i wasn't clear on my demand. When i check logs of the docker compose : sudo docker compose logs -f
There are no logs when a push is generated or deleted, is there a way to have these logs directly ?

The webserver logs are in /op/PasswordPusher/log. That might be what you are looking for....

If you set PWP__LOG_TO_STDOUT=true, all app logs will show up in docker log. I have some brief documentation on this setting here. I might set this as default in the future.

@TomHeim29
Copy link
Author

Indeed I missed config PWP__LOG_TO_STDOUT env. I set it to flase instead of true. Thanks

Yes, I just want the logs for webserver so it is good right now !

Thanks for all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants