I have already tried to publish the logs to the host machine(using docker run -v src:/des) now I want to transfer the logs to a different server
Commands I've used :
- rsync -u -avze ssh source/* example.com:/des/logs
rsync: Failed to exec ssh: No such file or directory (2) rsync error: error in IPC code (code 14) at pipe.c(84) [sender=3.0.9] rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32) rsync error: error in IPC code (code 14) at io.c(1532) [sender=3.0.9]
Already checked the source and destination paths but it still says the same.
If the host server 1 can communicate with server 2, then the Docker container running on top of server 01 it should be able to communicate with server 2. (Is this a correct statement?)
Is there any way of using the Linux utilities we can able to manage the logs without using other tools like Splunk
docker logs ${container}
?