简体   繁体   English

Serilog 和 elasticsearch 5.0

[英]Serilog and elasticsearch 5.0

I would like to use serilog to write to elasticsearch 5.0我想使用 serilog 写入 elasticsearch 5.0

Serilog already have a sink for this purpose at https://github.com/serilog/serilog-sinks-elasticsearch . Serilog 已经在https://github.com/serilog/serilog-sinks-elasticsearch 上有一个用于此目的的接收器。 Unfortunately this sink only works for elasticsearch v 2.x - it doesn't seem to work with elasticsearch.net 5.0.不幸的是,这个接收器只适用于 elasticsearch v 2.x - 它似乎不适用于 elasticsearch.net 5.0。

Does anyone have experience using serilog and elasticsearch 5.0 together?有没有人有同时使用 serilog 和 elasticsearch 5.0 的经验?
Can I modify the sink to use 5.0 or is there a better way to do it?我可以修改接收器以使用 5.0 还是有更好的方法来做到这一点?

Serilog.Sinks.Elasticsearch现在可以开箱用地使用 5.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM