bruno-garcia / log4net.ElasticSearch

log4net appender to ElasticSearch
https://bruno-garcia.github.io/log4net.ElasticSearch/
Other
219 stars 92 forks source link

Fix bug for URI creation when Port not given #125

Open interpolarity opened 4 years ago

interpolarity commented 4 years ago

No additional logif when user/pass given but port not given, resulting in extra colon in the URI to elastic and breaking functionality.

Also, since the bitnami stack for ELK has elasticsearch exposed via /elasticsearch on the 80 port, adding port 80 results in /elasticsearch:80 instead of :80/elasticsearch, breaking all of the endpoints. As bitnami is set to port 80 on default, adding this fix also neatly fixes the issue for anyone trying to use default bitnami settings.