LogStash Crash
Posted: Tue Sep 16, 2025 11:15 am
Hi all,
I have been having an issue with Logstash on my NagiosLog Instance. every so often the service shows running but the sub status of the port listener shows exited. I have composed a check tool with NagiosXI, as the standard NCPA service check shows that the service is still running but does not indicate that the service thread for the ports has exited. I use this command to check it
systemctl list-units --type=service --all |{ head -1; grep "logstash.service"; }
and most times it shows running in SUB but when it fails it shows exited.
From the time it shows exited I receive no logs in the log server at all.
I have expanded the java vm settings for LogStash to
echo $LS_JAVA_OPTS
-Xmx2g -Xmx1g
I have checked the logs and I am not seeing anything that is unexpected in the Logstash logs.
Any Thoughts?
Thanks,
Joe Hahn
I have been having an issue with Logstash on my NagiosLog Instance. every so often the service shows running but the sub status of the port listener shows exited. I have composed a check tool with NagiosXI, as the standard NCPA service check shows that the service is still running but does not indicate that the service thread for the ports has exited. I use this command to check it
systemctl list-units --type=service --all |{ head -1; grep "logstash.service"; }
and most times it shows running in SUB but when it fails it shows exited.
From the time it shows exited I receive no logs in the log server at all.
I have expanded the java vm settings for LogStash to
echo $LS_JAVA_OPTS
-Xmx2g -Xmx1g
I have checked the logs and I am not seeing anything that is unexpected in the Logstash logs.
Any Thoughts?
Thanks,
Joe Hahn