DECK36 / go-log2gelf

glue code to 'tail -f' a log file to GELF/UDP
BSD 2-Clause "Simplified" License
2 stars 2 forks source link

Behaviour if Graylog2 is not running #1

Open mschuett opened 9 years ago

mschuett commented 9 years ago

I still have to decide how to react when Graylog2 is not running. Right now log2gelf will start sending UDP messages (i.e. consume log data) and then receive the ICMP feedback as 'connection refused'.

The alternative is to ignore all network feedback and keep sending. In this case the log2gelf itself would be more reliable (always on, always updating its status file) but if Graylog2 is down then all those messages will be lost.

razvanphp commented 9 years ago

I would suggest something like periodical check each X minutes, configurable, instead of requiring manual intervention.