busimus / cutelog

GUI for logging
MIT License
479 stars 45 forks source link

Remote logging? #4

Closed LaundroMat closed 6 years ago

LaundroMat commented 6 years ago

Hi -

First of all, great tool, thanks! It really scratches an itch I had :1st_place_medal:

Could you elaborate in the docs on how to set up remote logging (if such a thing is possible)? Specifically tailing a log on another server and watching it in a cutelog client on another machine.

busimus commented 6 years ago

You can indeed log remotely. The usage example in the readme lets you specify the address of the machine that you wish to send logs to. That address could be local or remote because cutelog by defaults binds to 0.0.0.0 (any address it can, basically). I just tested it and logging from my VPS to my PC worked fine (but I had to forward the port that cutelog is bound to in my router's settings).

But, since you mentioned "tailing a log", I think you mean something different, like parsing log strings emitted to the terminal by an arbitrary program and sending them to cutelog. Is that correct?

LaundroMat commented 6 years ago

Thanks for the quick reply!

I mistakenly thought cutelog was also able connect to an external client (e.g. via SSH) and read the logs from there too.

I'll experiment with something like https://localtunnel.github.io/ to try and see if I can push the logs from my remote machine to this client here (which is on a corporate network and I don't have access to the router).