Logstash not restarting/stoping

Logstash is not restarting/stoping? How do we stop/restart?
OS is CentOS 8
Logstash version using : 7.10 ( on previous versions also it is not stoping).

[root@INHY-PAPP-ELK01 conf.d]# 
[root@INHY-PAPP-ELK01 conf.d]# 
[root@INHY-PAPP-ELK01 conf.d]# 
[root@INHY-PAPP-ELK01 conf.d]# systemctl status logstash
● logstash.service - logstash
   Loaded: loaded (/etc/systemd/system/logstash.service; enabled; vendor preset: disabled)
   Active: deactivating (stop-sigterm) since Mon 2020-11-30 21:02:18 PST; 8min ago
 Main PID: 841 (java)
    Tasks: 25 (limit: 100602)
   Memory: 971.5M
   CGroup: /system.slice/logstash.service
           └─841 /usr/share/logstash/jdk/bin/java -Xms6g -Xmx6g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.compile.invokedy>

Nov 30 21:09:03 INHY-PAPP-ELK01 logstash[841]: [2020-11-30T21:09:03,021][ERROR][logstash.outputs.lumberjack][main] All hosts unavailable, sleeping {:hosts=>["155.94.153.116"], :e=>#<OpenSSL::SSL::SSLError: certificate verify failed>>
Nov 30 21:09:13 INHY-PAPP-ELK01 logstash[841]: [2020-11-30T21:09:13,570][ERROR][logstash.outputs.lumberjack][main] All hosts unavailable, sleeping {:hosts=>["155.94.153.116"], :e=>#<OpenSSL::SSL::SSLError: certificate verify failed>>
Nov 30 21:09:24 INHY-PAPP-ELK01 logstash[841]: [2020-11-30T21:09:24,118][ERROR][logstash.outputs.lumberjack][main] All hosts unavailable, sleeping {:hosts=>["155.94.153.116"], :e=>#<OpenSSL::SSL::SSLError: certificate verify failed>>
Nov 30 21:09:35 INHY-PAPP-ELK01 logstash[841]: [2020-11-30T21:09:35,719][ERROR][logstash.outputs.lumberjack][main] All hosts unavailable, sleeping {:hosts=>["155.94.153.116"], :e=>#<OpenSSL::SSL::SSLError: certificate verify failed>>
Nov 30 21:09:47 INHY-PAPP-ELK01 logstash[841]: [2020-11-30T21:09:47,291][ERROR][logstash.outputs.lumberjack][main] All hosts unavailable, sleeping {:hosts=>["155.94.153.116"], :e=>#<OpenSSL::SSL::SSLError: certificate verify failed>>
Nov 30 21:09:57 INHY-PAPP-ELK01 logstash[841]: [2020-11-30T21:09:57,847][ERROR][logstash.outputs.lumberjack][main] All hosts unavailable, sleeping {:hosts=>["155.94.153.116"], :e=>#<OpenSSL::SSL::SSLError: certificate verify failed>>
Nov 30 21:10:08 INHY-PAPP-ELK01 logstash[841]: [2020-11-30T21:10:08,424][ERROR][logstash.outputs.lumberjack][main] All hosts unavailable, sleeping {:hosts=>["155.94.153.116"], :e=>#<OpenSSL::SSL::SSLError: certificate verify failed>>
Nov 30 21:10:19 INHY-PAPP-ELK01 logstash[841]: [2020-11-30T21:10:19,999][ERROR][logstash.outputs.lumberjack][main] All hosts unavailable, sleeping {:hosts=>["155.94.153.116"], :e=>#<OpenSSL::SSL::SSLError: certificate verify failed>>
Nov 30 21:10:30 INHY-PAPP-ELK01 logstash[841]: [2020-11-30T21:10:30,577][ERROR][logstash.outputs.lumberjack][main] All hosts unavailable, sleeping {:hosts=>["155.94.153.116"], :e=>#<OpenSSL::SSL::SSLError: certificate verify failed>>
Nov 30 21:10:42 INHY-PAPP-ELK01 logstash[841]: [2020-11-30T21:10:42,170][ERROR][logstash.outputs.lumberjack][main] All hosts unavailable, sleeping {:hosts=>["155.94.153.116"], :e=>#<OpenSSL::SSL::SSLError: certificate verify failed>>

[root@INHY-PAPP-ELK01 conf.d]# jobs
[3]-  Running                 systemctl stop logstash &
[4]+  Running                 systemctl stop logstash &
[root@INHY-PAPP-ELK01 conf.d]# 

One could argue that that is a bug. The connect function unconditionally retries the connection after a sleep if it fails. It would be nice if it used a stoppable sleep like the elasticsearch output.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.