ecs-dotnet icon indicating copy to clipboard operation
ecs-dotnet copied to clipboard

[BUG] Cannot send logs to https://server/subpath

Open ggercman opened this issue 2 years ago • 0 comments

ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog): Elastic.Serilog.Sinks

ECS .NET assembly version (e.g. 1.4.2): 8.6.1

.NET framework / OS: dotnet 7

Description of the problem, including expected versus actual behavior: Logs are sent to root url, subpath is ignored.

Steps to reproduce:

  1. Set elastic search under reverse proxy with subpath, for example https://server/elastic => http://localhost:9200
  2. Configure serilog to send logs to https://server/elastic (as in documentation https://www.elastic.co/guide/en/ecs-logging/dotnet/current/serilog-data-shipper.html)
  3. observe that logs are sent using POST to https://server/logs-console-example-demo/_bulk?filt... subpath is ignored.

ggercman avatar Aug 24 '23 14:08 ggercman