Store historical logs for reading
It would be really useful if goreman could be configured to buffer/store like, N mb worth of logs of output to stdout and stderr, and provided rpc commands like goreman tail or goreman logs which you could use to read logs from a specific process or all processes.
happy to implement if you would be open to this feature
Thanks. Could you please provide a simple use case or step by step instructions?
so the simple use case is that I am running goreman in one terminal, and I would like to copy logs out of that terminal to send to somebody, or i would like to grep through these logs.
say i have services service1 i could do something like
goreman logs -n100 service1 to get the last 100 lines of logs
or goreman logs -f service | grep ERROR to get a stream of all errors
another advantage is that programming agents could get access to logs through running said commands, and be able to automatically do that back and forth.
I see. So you want to extract the logs of a specific service in real time from a running goreman?
yes exactly!
supervisorctl I remember has this functionality to get logs from running supervisord processes for instance