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

Logging: Log attempts from Beats to re-establish connections #5175

Closed
ppf2 opened this issue Sep 13, 2017 · 4 comments
Closed

Logging: Log attempts from Beats to re-establish connections #5175

ppf2 opened this issue Sep 13, 2017 · 4 comments
Labels
enhancement Filebeat Filebeat good first issue Indicates a good issue for first-time contributors

Comments

@ppf2
Copy link
Member

ppf2 commented Sep 13, 2017

Currently, at the default logging level, we are not logging entries on when Logstash attempts to re-establish connections (eg. due to DNS for downstream servers not available). For example, after these messages when the DNS issue is resolved:

2017-09-07T02:50:43-07:00 WARN DNS lookup failure "<hostname>": lookup <hostname> on <ip>: read udp <ip>:51430-><ip>: i/o timeout
2017-09-07T02:50:43-07:00 ERR Connect failed with: lookup <hostname> on <ip>: read udp <ip>:51430-><ip>: i/o timeout

Having this information logger at the default level can help with troubleshooting.

@liketic
Copy link

liketic commented Sep 13, 2017

Hi @ppf2 seems like it's a low hanging fruit issue, can I take it? 😄

@ruflin
Copy link
Contributor

ruflin commented Sep 17, 2017

@liketic Of course, all contributions are welcome.

@brandonmensing
Copy link

@liketic #5198 may be tempting for you as well, and thanks for any contribution here!

@tsg tsg added the good first issue Indicates a good issue for first-time contributors label Oct 12, 2017
@recrsn
Copy link
Contributor

recrsn commented Feb 14, 2018

Hi, I'm currently looking at beats source code and getting familiar with it. I'm interested to give this a try.

@urso urso closed this as completed in #6404 Aug 6, 2018
ph pushed a commit that referenced this issue Sep 4, 2018
Cherry-pick of PR #6404 to 6.4 branch. Original message: 

Closes #5175 

Logs an info line "Attempting to reconnect" at every reconnect attempt.
leweafan pushed a commit to leweafan/beats that referenced this issue Apr 28, 2023
Cherry-pick of PR elastic#6404 to 6.4 branch. Original message: 

Closes elastic#5175 

Logs an info line "Attempting to reconnect" at every reconnect attempt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Filebeat Filebeat good first issue Indicates a good issue for first-time contributors
Projects
None yet
Development

No branches or pull requests

8 participants