goreman icon indicating copy to clipboard operation
goreman copied to clipboard

Store historical logs for reading

Open elee1766 opened this issue 4 months ago • 4 comments

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

elee1766 avatar Aug 21 '25 02:08 elee1766

Thanks. Could you please provide a simple use case or step by step instructions?

mattn avatar Aug 21 '25 11:08 mattn

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.

elee1766 avatar Aug 21 '25 17:08 elee1766

I see. So you want to extract the logs of a specific service in real time from a running goreman?

mattn avatar Sep 03 '25 13:09 mattn

yes exactly!

supervisorctl I remember has this functionality to get logs from running supervisord processes for instance

elee1766 avatar Sep 04 '25 07:09 elee1766