markmcdowell / NLog.Targets.ElasticSearch

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

using 2 URIs #35

Closed Trysomthing closed 7 years ago

Trysomthing commented 7 years ago

I’m using 2 UIRs – local & Remote. I have 10 messages/events. I expect all 10 will appear on both elastic servers. What actually happens is the 10 log messages split between the 2 URIs (one has 4 and the other 6)

markmcdowell commented 7 years ago

Elasticsearch will load balance across all url's rather than sending to both. You would have to add mulitple nlog targets to send to 2 different instances.