vklochan/python-logstash

logstash server restart handling

svenresch opened this issue · 0 comments

What should be done from a python client when a Logstash server is restarted?

I'm running a Logstash v2.3.4 container on my local post via a docker image found on docker hub. https://hub.docker.com/_/logstash/

logstash.conf

input {
  tcp {
    port => 5000
    codec => json
  }
}
output {
  stdout {
    codec => rubydebug
  }
}

I'm also running a Flask app on my localhost with python-logstash connecting via TCP.

When I restart the container that is running Logstash I no longer see logged messages being displayed to stdout until I restart my Flask server. If anyone can help illuminate what should be done here, or else point me in the right direction, then that would be appreciated.