Record Serilog Logs Directly in ElasticSearch

I want to configure a log aggregator. So far I am leaning towards ElasticSearch / Kibana. In my applications, I use Serilog, which is currently written to the Windows event log. How to configure Serilog to send logs to ElasticSearch instead?

+4
source share
1 answer

G'day! There are several details in the Serilog wiki with the following:

Install-Package Serilog.Sinks.ElasticSearch

then

var log = new LoggerConfiguration()
    .WriteTo.ElasticSearch()
    .CreateLogger();
+5
source

All Articles