6
votes

I want to setup a log aggregator. So far I'm leaning towards ElasticSearch/Kibana. In my apps I'm using Serilog, that currently writes to the Windows Event Log. How do I configure Serilog to send the logs to ElasticSearch instead?

1

1 Answers

9
votes

G'day! There are some details on the Serilog wiki with the following:

Install-Package Serilog.Sinks.ElasticSearch

then:

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