2016-10-20 29 views

回答

-1

当然可以,使用Fluentd的syslog输入。例如,如果您希望Fluentd在端口4567上侦听,并将日志事件保存到本地运行的ElasticSearch,请使用以下命令。

<source> 
    type syslog 
    port 4567 
    tag rsyslog 
</source> 
<match rsyslog.**> 
    type copy 
    <store> 
    type elasticsearch 
    logstash_format true 
    flush_interval 10s 
    host 127.0.0.1 
    port 9200 
    </store> 
</match> 

有了这个地方,只是向前发展的日志中已安装Fluentd服务器。