怎么又是你

logstash 如何不重启reload配置文件

Logstash | 作者 jiping | 发布于2020年10月22日 | 阅读数:5010

我是window10 环境,logstash 7.5
看过相关文档:bin/logstash -f apache.config --config.reload.automatic此类方式做到不重启自动加载修改后的配置文件,启动都没问题,但是当启动后修改配置文件apache.config却总是报错如下:
logstash Cannot reload pipeline, because the existing pipeline is not reloadable
不知道问题出在什么地方,希望这个问题在window中能被解决,要知道每次重启logstash时间还挺长的,而且在调测阶段修改配置文件的地方应该很多
已邀请:

jiping - 90年后IT男

赞同来自:

经过多番查找,问题原因已经找到
报错原因:
       logstash的配置文件中有stdin插件,reload就会报错,网上说reload不支持stdin插件
解决办法:
       1)修改配置文件
             去掉你配置文件中stdin相关内容
             我配置文件用的file,所有去掉对程序没有影响,但你必须要stdin那就只能等官方给我解决方案了
      2)reload方式启动
             bin/logstash -f apache.config --config.reload.automatic
建议:
      官方把reload相关限制写在文档中;
      reload功能希望能尽早支持stdin等相关插件

wang509020

赞同来自:

logstash的免重启的方法:
nohup    bin/logstash -f conf.d/logstash_to_es.conf --config.reload.automatic  &>/dev/null &

要回复问题请先登录注册