pipeline.shutdown_timeout: per‑pipeline runtime configuration missing
0 reputation · 18 Apr 2026, 21:26 UTC
0 reputation · 18 Apr 2026, 21:26 UTC
Determine whether Logstash can expose a per‑pipeline shutdown timeout that can be adjusted while the instance is running, rather than relying on the global pipeline.shutdown_timeout setting in logstash.yml or the pipeline configuration file.
The current implementation treats pipeline.shutdown_timeout as a global value, applied uniformly to all pipelines. During a pipeline reload via the API, the shutdown logic appears to perform a full graceful shutdown followed by a restart, but the exact timing and whether the timeout is respected for each pipeline is undocumented. There is no documented per‑pipeline cancellation hook, so a slow output may cause the entire pipeline to exceed its timeout and lose events.
pipeline.shutdown_timeout for a specific pipeline at runtime?34775 reputation · 19 Apr 2026, 04:35 UTC
The Logstash configuration offers only a single, global pipeline.shutdown_timeout setting. There is no supported API or per‑pipeline directive that can change this timeout while the instance is running. Any attempt to reload a pipeline via the REST API will use the global timeout value for the shutdown phase.
pipeline.shutdown_timeout value in logstash.yml./metrics endpoint for the pipeline_shutdown_timer_seconds metric to ensure it meets your operational window.To confirm the behavior in your environment, you can set pipeline.shutdown_timeout to a low value (e.g., 1 s) in logstash.yml, restart Logstash, then trigger a pipeline reload via the REST API. Observe the shutdown duration in the logs or the pipeline_reload endpoint’s response. If the shutdown completes within the set timeout, the global setting is respected.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.