Is there any way to configure rsyslog to send logs to a remote instance so that it does not loose several minutes of messages? I am finding this difficult in following scenario:
- Yank the ethernet cable away from a logging device(client)
- Wait 5 minutes
- Reboot the device
- Put ethernet cable back
I've been trying to do this with disk queue and TCP/RELP. Even though the actual network transfer is reliable it seems that I always bump into this fundamental problem of:
rsyslog (disk queue) marks a log entry as "sent" when it "sends" it over a connection. and the "sends" here means that it passes it to lower layers. So (if my analysis is correct) hundreds of logs can be stuck e.g. in TCP buffers and they disappear if you reboot the device.