修改dictionary_path个文件后需要重启logstash吗?
Is It necessary to restart logstash after modifying a dictionary_path file?
我在 logstash 中使用了以下翻译过滤器
translate {
field => "countries"
destination => "cities"
dictionary_path => "/home/rrr/cities.yml"
}
然后我以这种方式启动了 logstash
/usr/share/logstash/bin/logstash -f $directory --path.settings=/etc/logstash -t
一切顺利。
我的问题是:
logstash 会考虑我在 dictionary_path 文件中所做的任何修改吗?
我的意思是我是否需要在这个文件的任何版本之后重新启动 logstash?
应该没有必要重新启动 logstash。 translate插件的配置里面有个参数,refresh interval:
refresh_interval
Value type is number
Default value is 300
When using a dictionary file, this setting will indicate how frequently (in seconds) logstash will check the dictionary file for updates.
我在 logstash 中使用了以下翻译过滤器
translate {
field => "countries"
destination => "cities"
dictionary_path => "/home/rrr/cities.yml"
}
然后我以这种方式启动了 logstash
/usr/share/logstash/bin/logstash -f $directory --path.settings=/etc/logstash -t
一切顺利。
我的问题是:
logstash 会考虑我在 dictionary_path 文件中所做的任何修改吗? 我的意思是我是否需要在这个文件的任何版本之后重新启动 logstash?
应该没有必要重新启动 logstash。 translate插件的配置里面有个参数,refresh interval:
refresh_interval
Value type is number
Default value is 300
When using a dictionary file, this setting will indicate how frequently (in seconds) logstash will check the dictionary file for updates.