Replies: 1 comment
-
The reason you can't enter multiple log forwarding commands in the same terminal is because When you run: docker logs my-container1 --follow --tail=10 | logdy forward 8551 The terminal stays "busy" because:
This is why you need separate terminals/tabs - each streaming operation needs its own process to run continuously. Opening new tabs allows you to run multiple independent streaming processes simultaneously. The simplest approach is to use Ubuntu's native terminal tabs. Just press # First tab
docker logs my-container1 --follow --tail=10 | logdy forward 8551
# Switch to new tab (Ctrl+Shift+T)
docker logs my-container2 --follow --tail=10 | logdy forward 8552 You can switch between tabs using No additional software or complex configuration needed - it's all built into your Ubuntu terminal. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've setup logdy as a service listening on ports 8551, 8552.. 8555. Docker is running multiple containers and I want to redirect each log to a different port, so I can distinguish them on the logdy ui. According to the offical website docs, I should to use:
But when I enter the first line, the program shows :
INFO[14:42:15.882] Accept stdin and forward to port port=8551
It doesn't exit and keeps the bash busy. I can't enter the second line without interrupting the logging of "my-container1".
Is there some way to deamonise the commands. I tried with setsid but it doesn't seem to work.
My OS is ubuntu 24.04
Beta Was this translation helpful? Give feedback.
All reactions