markmcdowell / NLog.Targets.ElasticSearch

NLog target for Elasticsearch
MIT License
176 stars 89 forks source link

What is the behavior when the target Elasticsearch host is down or unreachable? #151

Closed mshwf closed 3 years ago

mshwf commented 3 years ago

Hi, We are comparing using Filebeat and NLog.Target.Elasticsearch to send logs to Elasticsearch, in case Elasticsearch is hosted on a different machine. Will NLog.Target.Elasticsearch retry sending logs generated when Elasticsearch service was offline or the machine is down? so I don't lose logs if ES machine is not reachable?

markmcdowell commented 3 years ago

You can use the RetryingTargetWrapper to keep trying when it errors but I would use Filebeat where you can.

mshwf commented 3 years ago

Thanks for the quick reply, appreciate your help!