Use a disk assisted queue for rsyslog #56

Merged
jeltz merged 3 commits from rsyslog_queues into master 2021-05-04 00:54:53 +02:00
2 changed files with 23 additions and 0 deletions
Showing only changes of commit b29e9c0e45 - Show all commits

View file

@ -1,3 +1,4 @@
--- ---
rsyslog_outputs: [] rsyslog_outputs: []
rsyslog_high_density: false
... ...

View file

@ -91,6 +91,28 @@ ruleset(name="sendLogsToRemote") {
port="{{ output.port }}" port="{{ output.port }}"
{% endif %} {% endif %}
queue.type="LinkedList"
queue.spoolDirectory="/var/spool/rsyslog"
queue.fileName="queue_{{ loop.index }}"
queue.saveOnShutdown="on"
{% if rsyslog_high_density %}
queue.highWatermark="20000"
queue.lowWatermark="5000"
queue.checkpointInterval="10000"
queue.maxDiskSpace="4g"
{% else %}
queue.highWatermark="500"
queue.lowWatermark="100"
queue.checkpointInterval="200"
queue.syncqueuefiles="on"
queue.maxDiskSpace="500m"
{% endif %}
action.resumeRetryCount="-1"
action.reportSuspension="on"
action.reportSuspensionContinuation="on"
{% if loop.index > 1 and output.fallback %} {% if loop.index > 1 and output.fallback %}
action.execOnlyWhenPreviousIsSuspended="on" action.execOnlyWhenPreviousIsSuspended="on"
{% endif %} {% endif %}