I'm using rsyslog
to forward syslog entries from a pile of servers to Loggly
The configuration looks something like this:
# Config for loggly upload
*.* @@logs.loggly.com:12345
This works, but because it's forwarding, any log entries which occur when there isn't an internet connection never make it to loggly.
Is there anyway I can configure rsyslog to "hold" log entries until an internet connection is established, and then send them? Or is there another tool I should be using for this?
Rsyslog is able to buffer messages to disk if it is unable to contact a remote server. The default
rsyslog.conf
on my Fedora system includes the following example:The configuration is explain detail in this document.
syslog-ng can buffer logs to disk if it can't send them to the server.