/etc/init.d/logstash force-stop failed!


(shaonbean) #1

os: centos6.9 elastic stack lastest version yum install

when logstash start ,I configure all elk *.yml, the logstash also error, when I kill logstash pid, logstash will auto start.
I can't find how to logstash auto restart.

I debug logstash log, the error:

Error: event executor terminated
Exception: Java::JavaUtilConcurrent::RejectedExecutionException
Stack: io.netty.util.concurrent.SingleThreadEventExecutor.reject(io/netty/util/concurrent/SingleThreadEventExecutor.java:840)
io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(io/netty/util/concurrent/SingleThreadEventExecutor.java:342)
io.netty.util.concurrent.SingleThreadEventExecutor.addTask(io/netty/util/concurrent/SingleThreadEventExecutor.java:335)
io.netty.util.concurrent.SingleThreadEventExecutor.execute(io/netty/util/concurrent/SingleThreadEventExecutor.java:765)
io.netty.channel.AbstractChannel$AbstractUnsafe.register(io/netty/channel/AbstractChannel.java:475)
io.netty.channel.SingleThreadEventLoop.register(io/netty/channel/SingleThreadEventLoop.java:80)
io.netty.channel.SingleThreadEventLoop.register(io/netty/channel/SingleThreadEventLoop.java:74)
io.netty.channel.MultithreadEventLoopGroup.register(io/netty/channel/MultithreadEventLoopGroup.java:85)
io.netty.bootstrap.AbstractBootstrap.initAndRegister(io/netty/bootstrap/AbstractBootstrap.java:330)
io.netty.bootstrap.AbstractBootstrap.doBind(io/netty/bootstrap/AbstractBootstrap.java:281)
io.netty.bootstrap.AbstractBootstrap.bind(io/netty/bootstrap/AbstractBootstrap.java:277)
io.netty.bootstrap.AbstractBootstrap.bind(io/netty/bootstrap/AbstractBootstrap.java:259)
org.logstash.beats.Server.listen(org/logstash/beats/Server.java:68)
java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
RUBY.run(/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-beats-3.1.14-java/lib/logstash/inputs/beats.rb:196)
RUBY.inputworker(/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:425)
RUBY.start_input(/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:419)
java.lang.Thread.run(java/lang/Thread.java:748)


(shaonbean) #2

elk process

[root@elk-stack init.d]# netstat -nlpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 192.168.10.51:9600 0.0.0.0:* LISTEN 31470/java
tcp 0 0 192.168.10.51:5601 0.0.0.0:* LISTEN 1760/node
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 1641/redis-server
tcp 0 0 0.0.0.0:52492 0.0.0.0:* LISTEN 1609/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1585/rpcbind
tcp 0 0 192.168.10.51:9200 0.0.0.0:* LISTEN 1852/java
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1911/nginx
tcp 0 0 0.0.0.0:5044 0.0.0.0:* LISTEN 31470/java
tcp 0 0 192.168.10.51:9300 0.0.0.0:* LISTEN 1852/java
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1781/sshd

logstash status

[root@elk-stack init.d]# /etc/init.d/logstash status
logstash is not running

when use logstash daemon script check logstash status is not running .but use ps aux | grep logstash can find logstash process alive. please help slove this problems...


(shaonbean) #3

I slove problems

becsuase I use initctl start logstash,


(system) #4

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