Hi,
if logstash is down nxlog tries to reconnect. If logstash is unavailable for longer time, nxlog will try again only each 200s.
Can I reconfigure nxlog to set the maximum retry period to 60s?
thanks, Andreas
nxlog: can max retry interval vor reconnect be limited?
Re: nxlog: can max retry interval vor reconnect be limited?
om_tcp has a reconnect(); function that probably does what you're looking for, though I couldn't find a specific example. It's been deprecated as of 2.4 though and i'm not sure what, if anything, it will be replaced with.
Example:
https://nxlog.co/question/1453/omtcp-reconnect-schedule
You could probably add some counter logic in the example to only try x reconnect attempts.
Example:
https://nxlog.co/question/1453/omtcp-reconnect-schedule
You could probably add some counter logic in the example to only try x reconnect attempts.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: nxlog: can max retry interval vor reconnect be limited?
Interesting. Please let us know if that schedule works. Could be useful. 
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: nxlog: can max retry interval vor reconnect be limited?
@_asp_ , please let us know if that works for you.
If it does not work, please be aware that we will be closed tomorrow and Friday due to US Thanksgiving. We are also closing early today. We we don't hear back by the time we close today, we'll get to it on Monday. Enjoy the weekend!
If it does not work, please be aware that we will be closed tomorrow and Friday due to US Thanksgiving. We are also closing early today. We we don't hear back by the time we close today, we'll get to it on Monday. Enjoy the weekend!
Last edited by dwhitfield on Wed Nov 23, 2016 2:47 pm, edited 1 time in total.
Reason: "the" not "he"
Reason: "the" not "he"
Re: nxlog: can max retry interval vor reconnect be limited?
I will test it tomorrow. Thanks
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: nxlog: can max retry interval vor reconnect be limited?
Fantastic. Like I said, we are closed tomorrow, but if it doesn't work, we'll help you out on Monday.