root@test[ ~ ]# cat /etc/rsyslog.conf
*.* action(type="omfwd"
queue.type="LinkedList"
queue.filename="queue_"
action.resumeRetryCount="-1"
queue.saveonshutdown="on"
Target="192.0.2.1" Port="514" Protocol="tcp")
Jan 21 00:00:04 dev-tb-5c2bcmair0001v.5gc.home systemd[1]: Started System Logging Service.
Jan 21 00:00:04 dev-tb-5c2bcmair0001v.5gc.home rsyslogd[310776]: error starting up disk queue, using pure in-memory mode [v8.2306.0 try https://www.rsyslog.com/e/2036 ]
Jan 21 00:00:04 dev-tb-5c2bcmair0001v.5gc.home rsyslogd[310776]: action-0-builtin:omfwd queue: error creating disk queue - giving up. [v8.2306.0 try https://www.rsyslog.com>
photon 4.x
Parameter queue.filename="queue_" is defined in the configuration however the work directory is not set in the rsyslog.conf
Follow the below workaround to fix the "creating disk queue " error
1. Add this line above "# Include configuration files from directory" in the /etc/rsyslog.conf
$WorkDirectory /var/spool/rsyslog
2. Run the below command
sudo mkdir -p /var/spool/rsyslog
3. Restart the rsyslog