There are certain procedures when emptying disk-buffer files is recommended before beginning.
source s_net {
network();
};
destination d_logserver {
network("10.21.10.20" port(514) disk-buffer( disk-buf-size(2000000) ) );
};
log {
source(s_net);
destination(d_logserver);
};
1. Name the disk-buffer file to empty and the destination statement using it.
If you're unsure about them,
Example
Non-empty disk-buffer file
Disk-buffer state loaded; filename='/opt/syslog-ng/var/syslog-ng-00000.qf', qout_length='0', qbacklog_length='0', qoverflow_length='0', qdisk_length='3006'
IP:PORT information of the destination with disk-buffer
afsocket_dd_qfile(stream,10.21.10.20:514) = { "queue_file": "/opt/syslog-ng/var/syslog-ng-00000.qf" }
destination d_logserver { network("10.21.10.20" port(514) disk-buffer( disk-buf-size(2000000) ) ); };
2. Locate the log statements which use that destination statement.
3. Disable the sources in the log statements.
Add '#' at the beginning of all source() entries in the log paths.
log {
# source(s_net);
destination(d_logserver);
}
4. Reload syslog-ng
/opt/syslog-ng/sbin/syslog-ng-ctl reload
5. Check the disk-buffer file status, see 'How to get information of disk-buffers files'.
6. To enable the sources again remove '#' from the log paths and reload syslog-ng.
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center