Cannot auto reload config , logstash-6.2.4


(w14569) #1

Hello,

I start logstash with command line

./bin/logstash -f ./config/std.conf -r --config.reload.interval 2s

when change the config std.conf , logstash cannot reload config automatic , it report error :

[2018-05-26T10:24:17,690][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Cannot reload pipeline, because the existing pipeline is not reloadable", :backtrace=>nil}

I CTRL + C and restart the process with cmd ./bin/logstash -f ./config/std.conf ,then try to force it to reload the config by sending a SIGHUP with kill -1 8992,it report error

[2018-05-26T11:41:54,260][WARN ][logstash.runner ] SIGHUP received.
[2018-05-26T11:41:54,651][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Cannot reload pipeline, because the existing pipeline is not reloadable", :backtrace=>nil}

Is it Bug?see also Logstash 6.0 allows starting with the -r flag with plugins that don't support reloading


(w14569) #2

Is anyone came up this ISSUE ? how to use reload cmd correctly

thank you very much


(Christian Dahlqvist) #3

Which input plugins are you using?


(w14569) #5

input plugin using stdin,output plugin using stdout


(w14569) #6

This my config:

input{

stdin {

type => "log"

}

}

output {

stdout {

codec => rubydebug

}

}


(Christian Dahlqvist) #7

Stain plugin can not be reloaded so you will need to change to another one.


(system) #8

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