markmcdowell / NLog.Targets.ElasticSearch

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

Not logging data on the virtual machine where my elasticsearch installed #93

Closed asif1380 closed 5 years ago

asif1380 commented 5 years ago

I am trying to log the data on virtual machine but It is not logging at all while i am able to log the data in my local machine.

snakefoot commented 5 years ago

Usually your virtual machine has an IP-address and maybe even a firewall and maybe also port-forwarding.

Can you ping the virtual machine from the outside? Can you reach the http-address of the elastic-search-instance using a browser from the outside?

When you have made/found a hole to the ElasticSearch-instance on the virtual machine using a http-address, then provide this to the ElasticSearch-Target as Uri-parameter.

asif1380 commented 5 years ago

thank you @snakefoot , Your suggestion work for me. the issue has been solved after adding the uri parameter.