When syslog-ng crashes for some reason, it can create a core file that contains important troubleshooting information. To enable core files, complete the following procedure:
Procedure 3.19.1.1. Creating syslog-ng core files
Core files are produced only if the maximum core file
size ulimit is set to a high value in the init script of
syslog-ng.
Add the following line to the init script of syslog-ng:
ulimit -c unlimited
Verify that syslog-ng has permissions to write the directory it is started
from, e.g., /opt/syslog-ng/sbin/.
If syslog-ng crashes, it will create a core file in the directory syslog-ng was started from.
To test that syslog-ng can create a core file, you can create a crash manually. For this, determine the PID of syslog-ng (e.g., using the ps -All|grep syslog-ng command), then issue the following command: kill -ABRT <syslog-ng pid>
This should create a core file in the current working directory.
© 2007-2010 BalaBit IT Security
Please send your comments or documentation bugs to: documentation@balabit.com