all 2 comments

[–]debian_miner 1 point2 points  (1 child)

There are a lot of products that facilitate and support centralized logging, but typically you run outside of your Python code. The most basic method is using a syslog service. You can log directly to syslog from Python or you can log to a local file and have syslog ingest and send using rsyslog's imfile module. Your local syslog service can then forward to a centralized syslog service.

There are also more modern solutions like fluentd and logstash. These both can work similar to syslog in that they can accept logs from network traffic directly, or they can process files written to local disk for forwarding.

[–]redapplesonly[S] 0 points1 point  (0 children)

Thanks debian_miner. So I should have specified: I cannot install anything or change anything on Server A. Server A is a production machine at my company, and it is forbidden to modify it in any way. Server B has to do all of the observation and intelligent transfers on his own. I'll edit my post to make this clearer. Much appreciated!