Getting the status information of disk-buffer files
This section describes how to get status information of the disk-buffer files used in AxoSyslog.
Command syntax
The basic command syntax for getting the status information of the disk-buffer files used in AxoSyslog looks like the following:
/opt/syslog-ng/bin/dqtool info <DISK-BUFFER_FILE>
Example commands and outputs
-
Empty, normal disk-buffer file
/opt/syslog-ng/bin/dqtool info /opt/syslog-ng/var/syslog-ng-00000.qf/var/lib/syslog-ng/syslog-ng-00000.qf
Example output:
Disk-buffer state loaded; filename='/opt/syslog-ng/var/syslog-ng-00000.qf/var/lib/syslog-ng/syslog-ng-00000.qf', number_of_messages='0'
-
Non-empty, reliable disk-buffer queue file
/opt/syslog-ng/bin/dqtool info /opt/syslog-ng/var/syslog-ng-00000.rqf
Reliable disk-buffer state loaded; filename='/opt/syslog-ng/var/syslog-ng-00000.rqf', number_of_messages='10'
List disk-buffer state in the default directory
You can use the following one-liner command to get the state of all disk-buffer files that are stored in the default directory:
for qfile in /opt/syslog-ng/var/*.?(r)qf ; do /opt/syslog-ng/bin/dqtool info $qfile 2>&1 ; done
Last modified August 26, 2024: Disk-buffer related formatting fixes (127aafc)