码迷,mamicode.com
首页 > Web开发 > 详细

ELK+FileBeat+Log4Net

时间:2016-12-23 09:39:07      阅读:458      评论:0      收藏:0      [点我收藏+]

标签:stdout   code   string   pos   pre   url   lan   ruby   com   

ELK+FileBeat+Log4Net搭建日志系统

output {
    elasticsearch { hosts => ["localhost:9200"] }
    stdout { codec => rubydebug }
}

 

ElasticSearch配置

 

默认不需要配置,监听9200端口。直接运行即可

 

Kibana配置

 

elasticsearch.url: "http://localhost:9200"
默认连接es地址,如果本机测试无需修改。正式环境中连接到对应服务器就好。
server.port: 5601
监听端口5601,可修改到合适的端口。

 

然后直接运行就可启动。
初次进入要指定index pattern。一般默认使用如下配置即可。

 



 

 

 

 

ELK+FileBeat+Log4Net

标签:stdout   code   string   pos   pre   url   lan   ruby   com   

原文地址:http://www.cnblogs.com/Leo_wl/p/6213498.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!