Logstash 1.5 resets the pipeline before shutting down in response to a SIGTERM signal, so you can turn it off with the service logstash stop , init.d script, or whatever you usually use.
With Logstash 1.4.x, the SIGTERM signal suddenly disables Logstash, preventing the pipeline from flushing all messages in flight, but you can send SIGINT to force a flash. However, some plugins (for example, the redis input plugin) do not handle this gracefully and hang indefinitely.
source share