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?
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();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With