I noticed that setting a moderately high value for the flush_interval option (600 seconds) prevents logstash from shutting down.
If i keep the same configuration and set the flush_interval to 30 seconds logstash shutdowns normally.
I am testing this code in an environment with multiple pipelines and didn't test if the problem occurs with a single pipeline.
For all general issues, please provide the following details for fast resolution:
Version: Logstash 7.9.1 and output file plugin 4.3.0
Operating System: Debian 10
Steps to Reproduce:
Start a logstash instance with a pipeline using the following file output configuration
file {
path => "/data/%{[@metadata][beat]}.json"
flush_interval => 600
codec => line { format => "%{[event][original]}"}
}
Start logstash (for example with systemctl start logstash.service) and wait for it to start.
Stop logstash (for example with systemctl stop logstash.service) and check the logs, they will probably contain lots of rows similar to the following and logstash will hang:
Hello,
I noticed that setting a moderately high value for the
flush_interval
option (600 seconds) prevents logstash from shutting down.If i keep the same configuration and set the
flush_interval
to 30 seconds logstash shutdowns normally.I am testing this code in an environment with multiple pipelines and didn't test if the problem occurs with a single pipeline.
For all general issues, please provide the following details for fast resolution:
Start logstash (for example with
systemctl start logstash.service
) and wait for it to start.Stop logstash (for example with
systemctl stop logstash.service
) and check the logs, they will probably contain lots of rows similar to the following and logstash will hang:Can someone confirm this behaviour is not specific to my environment?
Thank you