-
Notifications
You must be signed in to change notification settings - Fork 58
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
Logstash hangs when connection to remote syslog server hangs #32
Comments
This behavior (preventing data loss on output) is intended. If you want to On Thursday, May 26, 2016, Micah Martin [email protected] wrote:
|
We implemented a codec, which decouples the respective output plugin from the rest of the outputs. Unfortunately, currently I am not allowed to open source this codec.
This decoupling allows us to achieve exactly what @micahlmartin requested. Our Logstash event processing becomes independent of the availability of some external target (in our case, the target is maintained by an other party). |
Yes I would like to have such a setting where I can choose to loose data and not block message processing for other outputs, or not lose data but block all further processing. |
Hey guys have you decided to implement this change? I believe this is important when dealing with third part products as output. A new setting would be awesome. |
@joaopauloksn No, there has no decision taken on this. As I mentioned above, this this problem was solved with a codec (unfortunately closed source). In my opinion, it does not make sense to implement this specific feature only in logstash-output-syslog. So the following two options come to my mind:
The second one would be a long way to go so I suggest to stick to option 1. |
@micahlmartin do you confirm this behavior is only visible in case we configure syslog output with TCP? Indeed, in UDP this behavior should not be visible from logstash point of view. |
I'm sending logs both to ES and a remote syslog server after parsing them. I ran into an issue today where after a few logs were sent to ES it would just stop processing completely. It turns out that I was unable to connect to my remote syslog server. The IP address is reachable but the security groups were preventing me from connecting which would just make my connection attempt hang. Turns out that this plugin also hangs trying to connect and then eventually just stops all logs from being processed at all with no indication as to why. I think there should be a timeout setting on the socket connection so that if it can't connect it just fails gracefully and stops trying to send messages.
The text was updated successfully, but these errors were encountered: