简体   繁体   English

将日志重定向到logstash实例而不是ElasticSearch

[英]Redirect logs to logstash instance instead of ElasticSearch

I have a question : 我有个问题 :

I`m using Elasticsearch.Net nugget with NLogs in order to send logs to my local Elasticsearch instance. 我将Elasticsearch.Net块与NLogs结合使用,以便将日志发送到我的本地Elasticsearch实例。 Kibana is visualize them as well, so far soo good. Kibana也在可视化它们,到目前为止效果还不错。

Is it possible using the same nugget to forwards logs to Logstash instance which is expose on my production environment instead to ElasticSearch 是否可以使用相同的块将日志转发到在生产环境中公开的Logstash实例,而不是ElasticSearch

Elasticsearch.Net客户端无法直接写入logstash实例。

要增加Martijn的答案 ,您可以使用NLog将日志写入本地目录,然后使用Filebeat将这些日志发送到Logstash

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

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