ps aux shows:
root 10592 0.3 7.5 411648 305972 ? Sl Nov29 39:17 ./topbeat -v -e -c topbeat.yml
So it is running.
But the log shows:
2015/12/03 21:35:35.773149 single.go:143: INFO send fail
2015/12/03 21:35:35.773160 single.go:150: INFO backoff retry: 4s
2015/12/03 21:35:44.818988 single.go:75: INFO Error publishing events (retrying): EOF
2015/12/03 21:35:44.819013 single.go:143: INFO send fail
2015/12/03 21:35:44.819024 single.go:150: INFO backoff retry: 8s
2015/12/03 21:35:52.850941 single.go:75: INFO Error publishing events (retrying): EOF
2015/12/03 21:37:12.403316 single.go:75: INFO Error publishing events (retrying): EOF
2015/12/03 21:37:12.403355 single.go:143: INFO send fail
2015/12/03 21:37:12.403367 single.go:150: INFO backoff retry: 1s
2015/12/03 21:37:36.017802 single.go:75: INFO Error publishing events (retrying): EOF
2015/12/03 21:37:36.017835 single.go:143: INFO send fail
2015/12/03 21:37:36.017855 single.go:150: INFO backoff retry: 2s
2015/12/03 21:37:43.070760 single.go:75: INFO Error publishing events (retrying): EOF
2015/12/03 21:37:43.070808 single.go:143: INFO send fail
2015/12/03 21:37:43.070821 single.go:150: INFO backoff retry: 4s
2015/12/03 21:37:52.113313 single.go:75: INFO Error publishing events (retrying): EOF
2015/12/03 21:37:52.113375 single.go:143: INFO send fail
2015/12/03 21:37:52.113388 single.go:150: INFO backoff retry: 8s
2015/12/03 22:38:20.893771 single.go:75: INFO Error publishing events (retrying): EOF
2015/12/03 22:38:20.893881 single.go:143: INFO send fail
2015/12/03 22:38:20.893897 single.go:150: INFO backoff retry: 1s
2015/12/03 22:38:21.926014 single.go:75: INFO Error publishing events (retrying): EOF
2015/12/03 22:38:21.926041 single.go:143: INFO send fail
2015/12/03 22:38:21.926052 single.go:150: INFO backoff retry: 2s
2015/12/03 22:38:28.953338 single.go:75: INFO Error publishing events (retrying): EOF
2015/12/03 22:38:28.953382 single.go:143: INFO send fail
2015/12/03 22:38:28.953395 single.go:150: INFO backoff retry: 4s
2015/12/03 22:38:37.979739 single.go:75: INFO Error publishing events (retrying): EOF
2015/12/03 22:39:36.409017 single.go:75: INFO Error publishing events (retrying): EOF
2015/12/03 22:39:36.409097 single.go:143: INFO send fail
2015/12/03 22:39:36.409111 single.go:150: INFO backoff retry: 1s
2015/12/03 22:39:37.449252 single.go:75: INFO Error publishing events (retrying): EOF
2015/12/03 22:39:37.449280 single.go:143: INFO send fail
2015/12/03 22:39:37.449308 single.go:150: INFO backoff retry: 2s
See the logs are last at Dec-03. Since then it hasn't published any event. But the log does not say why.
I am having this problem from multiple servers. Some servers work, some does not. They are all sending data to a centralized logstash instance. Logstash is running fine as it is receiving events from some servers.
A side question, how can I detect if topbeat has stopped sending events and restart it automatically?