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

Unable to get progress logs from a docker container running in detached mode #164

Open
nikhilo opened this issue Dec 4, 2024 · 0 comments

Comments

@nikhilo
Copy link

nikhilo commented Dec 4, 2024

I'm trying to run riot as a Docker container. Since I'm planning to run live replication on a pretty huge DB, I would like to get the logs from riot into a logging solution such as ELK.
When I run the container in foreground with docker run -it, I'm able to see the continuous progress in stdout.
However, when I run the container with docker run -d, I'm unable to get continuous progress in the logs.
I tried using several different parameter combinations,

--progress log
--progress log --info
--log-file /var/log/riot.log
--progress log --info --log-file /var/log/riot.log

No updates show up with I run

docker logs --follow riot
OR
tail -f /var/log/riot.log (in case of --log-file)

Only when I stop the container, the log line shows up,

Scanning/Listening 100% [=============] 18551/18551 (0:01:25 / 0:00:00) 218.2/s

How can I collect the logs from riot docker container and ship them to a logging solution ?

@nikhilo nikhilo changed the title Unable to get logs from docker container Unable to get logs from a docker container running in detached mode Dec 4, 2024
@nikhilo nikhilo changed the title Unable to get logs from a docker container running in detached mode Unable to get progress logs from a docker container running in detached mode Dec 4, 2024
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

1 participant