最近在配置rsyslog缓存,想要用50K做下实验,结果发现并没有用,日志超过50K还是会继续缓存,上网查,都是1g或者大于1g,没有比1g小的设置,想知道这个值有没有最小限制。
# Remote Logging (we use TCP for reliable delivery)
# An on-disk queue is created for this action. If the remote host is
# down, messages are spooled to disk and sent when it is up again.
$ActionQueueFileName uniqName # unique name prefix for spool files
$ActionQueueMaxDiskSpace 50K # 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
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
*.* @@remote-hostip:514
问题可能比较奇怪,求高人告知一下,多谢!