Fork me on GitHub
ELK+FileBeat+Log4Net

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。一般默认使用如下配置即可。

 



 

 

 

 

posted on 2016-12-23 08:01  HackerVirus  阅读(335)  评论(0编辑  收藏  举报