Considering the following architecture:
I have a laptop connected to a server over ethernet.
This laptop is configured to send log events with rsyslog on the server, the server is configured to accept those logs and store them in a file that can be used later with log exploitation software.
The problem is, the laptop can sometimes be disconnected to work on a remote location then can be plugged on several hours later. But I still want to transfer all the local event to the server after reconnection.
My idea at the moment is using the omrelp module for syslog and store the events locally in a disk queue, but I'm not so sure about the behaviour when the syslog server will be available again. Is there a timeout/limit after when the relp protocol will not resend the message? Or maybe it is just not appropriate for my case.
The other solution is creating custom scripts to reconciliate logs between client and server after the reconnection but I want to know if there is a better solution.