Skip to content
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

How can I determine if sending a syslog message was a success or a failure? #37

Open
dca00 opened this issue Nov 28, 2020 · 1 comment

Comments

@dca00
Copy link

dca00 commented Nov 28, 2020

When I send to a host where syslog daemon is not even running, the .Send() method does not throw any exceptions. It takes a tad bit longer than if the daemon is running there, but the difference is not significant enough to use it as an indicator.
So, how can I determine if syslog daemon is listening or not?

@ststeiger
Copy link

The default-syslog method is UDP.
UDP is connectionless - so there is not feedback.
You need to use either TCP or SSL/TLS.
Then you get an error if the server is not listening or did not not receive your message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants