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

Where are the production logs? #23

Closed
omenking opened this issue Jul 24, 2021 · 2 comments
Closed

Where are the production logs? #23

omenking opened this issue Jul 24, 2021 · 2 comments

Comments

@omenking
Copy link

I ran into a 500 error and so I figured I should setup streaming logs to CloudWatch Logs.

When I entered the rails container sudo podman exec -it forem-rails /bin/bash

and I tried to tail the logs tail -f log/production.log They were empty.

I set up HoneyBadger but this is only a temporary solution.

I could not determine where are the logs in the forem.yml.j2. I can see they should get set to Stdout.

Can I have a Linux command and location where I can observe the logs on a self-hosted production server?
I think if I can observe the logs I'll be able to do the rest myself.

@jdoss
Copy link
Contributor

jdoss commented Jul 24, 2021

Everything should be going into the systemd journal. Try this:

journalctl -f -u forem-rails.service

@cmgorton
Copy link
Contributor

Looks like this was answered @omenking. Going to go a head and close this issue.

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

No branches or pull requests

3 participants