-
Notifications
You must be signed in to change notification settings - Fork 678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logspout stops sending logs via tcp #277
Comments
What version are you running? Can you also post the logspout container logs after you stop seeing packets being sent? |
potentially related to #268 |
Version: v3.2-dev There is no other logs after packets stop being sent.
and at 10:02 packets lost somewhere without any additional info/logs or errors. |
If I use UDP, problem does not appears. Logs are transmitted for 3 days. Some lines are dropped (UDP "feature") but logspout continues sending logs and I see ~99% of them in my ElasticSearch. Maybe this info could be helpful |
Potential fix + tests were merged in f18e503 |
Sorry for my late answer. The commit f18e503 contains some changes and tests about syslog adapter. And this bug is about TCP connection, I think. |
Apologies as I assumed you were using tcp+syslog. It would seem yore using the logstash adapter. The adapters are actually the responsible code paths for connecting and reconnecting to the configured logging service. As we are no longer seeing this issue with the syslog adapter, I'm thinking your issue probably lies with the logstash adapter. Please let us know if you have additional information or even a PR that pertaining to the tcp transport. |
I am facing the same issue. The version I am using is v3.2.2. I used the httpstream module and found that logspout is actually reading the logs from stdout. The following is the log for logspout and the last few lines indicate what happens after the logs are stopped being sent. 10.37.4.213 | # logspout v3.2.2 by gliderlabs |
After 10-20mins after start container does not send any packets.
My problem was sending containers logs to logstash.
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build
After start container sends logs well, no drops or anything wrong. But after sometime it stops sending packets, I see it in CPU and network usage. My main container (which generates logs to stdout) works, its responses for requests, writes logs..
I verified if it is logstash-module problem. I ran luisbebop/echo-serverPorts and tried raw TCP sending and faced same beavior.
Any help is appreciated
UPD1
Restart logspout-container fixes problem for 10-20 mins.
This is my logsout output after start:
The text was updated successfully, but these errors were encountered: