Restore connection when logstash is restarted
inteloid opened this issue · 2 comments
inteloid commented
subject says it all, is there a feature like that? or any plans to implement?
bushev commented
+1
mitchjmiller commented
In the options object passed to winston-logstash you can define max_connect_retries. This defaults to 4 with a 100ms interval judging by the code before giving up and going silent.
I ran into this issue myself when restarting logstash as winston-logstash would give up on the connection before the server had time to start up again.
Setting max_connect_retries to -1 (infinite) worked for me.