Elasticsearch, Kibana, dotnet core and docker
The service is running under container that's why you should write your log using the container name like bellow:
Appsettings.Development.json:
{ "Logging": { "IncludeScopes": false, "LogLevel": { "Default": "Information", "System": "Information", "Microsoft": "Information" } }, "ElasticConfiguration": { "Uri": "http://elasticsearch:9200/" }}
You can find here a full example showing how to setup Serilog, Seq, elasticsearch and kibana to work together under Docker containers solution.
structure logging with serilog seq and elastic search under docker