When building my application to use this sink, I have been able to write logs to my elasticsearch when I host the elasticsearch server at the root of a web application (e.g.
But due to certain constraints from the business, I have to host the elasticsearch server as a virtual directory of an existing application (e.g.
). When I checked the logs, nothing is written into elasticsearch server, but other sinks like flat file and Azure was still able to capture the logs.
When I monitored the HTTP requests from Fiddler, I realized the requests were made to
, instead of
the connectionstring I use is "http://www.mycompany.com/elasticsearch/
" - I have tried with and without the "/" at the end of the string, but the result are the same.
Is there any workaround I can try to make this work at virtual directory?