Purpose:
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:
Steps:
-
Core files are produced only if the
maximum core file sizeulimit is set to a high value in the init script ofsyslog-ng. Add the following line to the init script ofsyslog-ng:ulimit -c unlimited -
Verify that
syslog-nghas permissions to write the directory it is started from, for example,/opt/syslog-ng/sbin/. -
If
syslog-ngcrashes, it will create a core file in the directorysyslog-ngwas started from. -
To test that
syslog-ngcan create a core file, you can create a crash manually. For this, determine the PID ofsyslog-ng(for example, using theps -All|grep syslog-ngcommand), then issue the following command:kill -ABRT <syslog-ng pid>This should create a core file in the current working directory.