We have a setup where the source rsyslog sends log lines to the destination
rsyslog via RELP. The source has a queue file setup with type LinkedList
for disk assisted queue.

If connection to destination fails, and if after some time, while the
connection to destination is still not available, the source rsyslog is
also restarted, some logs are lost when the destination comes back online.
It was my expectation that the source rsyslog would save its buffer in the
queue file (saveOnShutdown) and continue where it left off when the
destination becomes available.

source config:

    if ($syslogfacility-text == 'mail' or $syslogfacility-text == 'local4')
then {
        action(type="omrelp"
              target="10.10.10.50"
              port="1514"
              queue.filename="fwdRule"
              queue.maxFileSize="1g"
              queue.maxDiskSpace="100g"
              queue.saveOnShutdown="on"
              queue.type="LinkedList"
              queue.checkpointInterval="100"
              action.resumeRetryCount="-1"
              action.resumeInterval="60"
              tls="on"
              tls.caCert="/etc/pki/tls/certs/ca.crt"
              tls.myCert="/etc/pki/tls/certs/local.crt"
              tls.myPrivKey="/etc/pki/tls/private/local.key"
              tls.authmode="name"
              tls.permittedpeer=["*.domain.net"])
    }

destination config:

    module(load="imrelp")
    input(type="imrelp" port="1514"
      tls="on"
      tls.caCert="/etc/pki/tls/certs/ca.crt"
      tls.myCert="/etc/pki/tls/certs/local.crt"
      tls.myPrivKey="/etc/pki/tls/private/local.key"
      tls.authMode="name"
      tls.permittedpeer=["*.domain.net"]
    )
    $template DynaFile,"/var/log/%HOSTNAME%.log"
    *.* -?DynaFile

Both ends are running 8.2408.0 on Rocky8 Linux.

Does anything look wrong with the above setup?

Thank you

--
Mehmet
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to