为了能够自动检测配置文件的变更和自动从新加载配置文件,须要在启动的时候使用如下命令:git
./bin/lagstash -f configfile.conf --config.reload.automatic
默认,检测配置文件的间隔时间是3秒
,能够经过如下命令改变github
--config.reload.interval <second>
若是已经运行了没有提供自动重启的logstash,能够发送一个挂起命令给logstash从新加载配置文件:jvm
kill -1 <pid>
在重载过程当中,jvm
没有重启.spa
stdin
输入插件不支持自动重启.syslog
做为输入源,当重载配置文件时,会崩溃.请看: https://github.com/logstash-plugins/logstash-input-syslog/issues/40文章转载:.net
https://blog.csdn.net/qq_32292967/article/details/78622647插件
http://supershll.blog.163.com/blog/static/37070436201722273911690code
为了能够自动检测配置文件的变更和自动从新加载配置文件,须要在启动的时候使用如下命令:xml
./bin/lagstash -f configfile.conf --config.reload.automatic
默认,检测配置文件的间隔时间是3秒
,能够经过如下命令改变blog
--config.reload.interval <second>
若是已经运行了没有提供自动重启的logstash,能够发送一个挂起命令给logstash从新加载配置文件:ip
kill -1 <pid>
在重载过程当中,jvm
没有重启.
stdin
输入插件不支持自动重启.syslog
做为输入源,当重载配置文件时,会崩溃.请看: https://github.com/logstash-plugins/logstash-input-syslog/issues/40