filebeat 日志收集

官网也:

http://www.elastic.co/downloads/beats/filebeat

1、下载rpm包

# curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.5.1-x86_64.rpm

2、安装

# rpm -ivh filebeat-5.5.1-x86_64.rpm

3、配置

filebeat:

   prospectors:

    –

    paths:

– /usr/local/nginx/logs/www.sreop.com/*.log

input_type: log

document_type: nginx-access-log

paths:

– /usr/local/nginx/logs/error.log

input_type: log

document_type: nginx-error-log

output:

#elasticsearch:

#  hosts: [“localhost:9200”]

logstash:

hosts: [“10.10.5.65:5044”]

…其他部分没有改动,不需要修改

4、启动

# service filebeat start

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容