I am trying to log in .NET Framework with Elastic.serilog.sinks.
var logger = new LoggerConfiguration()
.MinimumLevel.Information()
.WriteTo.Elasticsearch(new[] { new Uri("http://localhost:9200") }, opts =>
{
opts.BootstrapMethod = BootstrapMethod.Failure;
})
.CreateLogger();
In the documentation it says that the default datastream is logs-dotnet-default. However when I check my Kibana I am not seeing the logs.
I have the following in my settings:
and I also created a datastream that captures from logs-dotnet-default, so why am I not seeing my logs?