CentOS6.9安装Filebeat监控Nginx的访问日志发送到Kafka
2018-02-10 14:19
986 查看
一、下载地址:
官方:https://www.elastic.co/cn/downloads/beats/filebeat
百度云盘:https://pan.baidu.com/s/1dvhqb0
二、安装
也可yum安装
下载和安装key文件
官方:https://www.elastic.co/cn/downloads/beats/filebeat
百度云盘:https://pan.baidu.com/s/1dvhqb0
二、安装
tar zxvf filebeat-6.2.1-linux-x86_64.tar.gz mv filebeat-6.2.1-linux-x86_64 filebeat
也可yum安装
下载和安装key文件
rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch[/code]
创建yum源文件vi /etc/yum.repos.d/elastic.repo[elastic-6.x] name=Elastic repository for 6.x packages baseurl=https://artifacts.elastic.co/packages/6.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md
开始安装yum install filebeat
三、配置vi kafka.ymlfilebeat.prospectors: - input_type: log paths: - /usr/local/openresty/nginx/logs/access.log output.kafka: hosts: ["10.10.6.225:9092"] topic: test required_acks: 1
运行./filebeat -e -c kafka.yml
后台运行nohup ./filebeat -e -c kafka.yml >/dev/null 2>&1 &
相关文章推荐
- filebeat 获取nginx日志 发送给ElasticSearch
- filebeat-6.2.3收集日志到kafka配置
- filebeat到kafka日志无法传输
- Filebeat+Logstash+ElasticSearch+Kibana搭建Apache访问日志解析平台
- ELK+Filebeat+Kafka+ZooKeeper 构建海量日志分析平台
- 24.ELK实时日志分析平台之Filebeat介绍及安装方法
- Centos7安装Logwatch配合msmtp邮件客户端发送服务器监控分析日志
- Linux操作系统安装ELK stack日志管理系统--(1)Logstash和Filebeat的安装与使用
- elk6.3.1+zookeeper+kafka+filebeat收集dockerswarm容器日志
- filebeat输出日志到阿里云kafka
- Elasticsearch & plugins(ELK+kafka+filebeat) 安装教程
- filebeat+kafka+ELK5.4安装与部署
- ELK+Filebeat+Nginx集中式日志解决方案(二)——添加ElasticSearch集群
- Filebeat 日志收集器 安装和配置
- ELK 5.0.1+Filebeat5.0.1 for LINUX RHEL6.6 监控MongoDB日志
- Elastic技术栈Beats日志收集工具filebeat的安装
- Filebeat 日志收集器 安装和配置
- centOS 下安装Nginx,访问/data/www目录时出现file not found
- ELK+Filebeat+Nginx集中式日志解决方案(一)