转发到远程服务器时,rsyslog会保持日志顺序吗?

时间:2019-11-05 03:34:05

标签: syslog rsyslog

我在rsyslog上设置了一个远程服务器,并且我正在测试远程服务器关闭,队列充满一段时间后再重新启动远程服务器的情况。

我可以看到所有日志都已转发,但顺序没有得到维护。

这是正常行为吗?我正在使用磁盘辅助队列。

这是我的配置的样子,预计将添加更多服务器

# start forwarding rule1
$WorkDirectory /some/path # where to place spool files
$ActionQueueFileName fwd1 # unique name prefix for spool files
$ActionQueueMaxDiskSpace 1g   # 1gb space limit (use as much as possible)
$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
$ActionQueueType LinkedList   # run asynchronously
$ActionResumeRetryCount -1    # infinite retries if host is down
$DefaultNetstreamDriver gtls
$DefaultNetstreamDriverCAFile cert/path
$ActionSendStreamDriverMode 1
$ActionSendStreamDriverAuthMode anon
kern.*;*.emerg;local5.*;mail.* @@server1:514

# start forwarding rule2
$ActionQueueFileName fwd2 # unique name prefix for spool files
$ActionQueueMaxDiskSpace 1g   # 1gb space limit (use as much as possible)
$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
$ActionQueueType LinkedList   # run asynchronously
$ActionResumeRetryCount -1    # infinite retries if host is down
kern.*;*.emerg;local5.*;mail.* @@server2:6514

0 个答案:

没有答案
相关问题