【Ubuntu】安装filebeat

在Ubuntu系统上安装filebeat

1. 添加ElasticSearch的GPG密钥

bash 复制代码
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

2. 添加ElasticSearch的APT存储库

bash 复制代码
echo "deb https://artifacts.elastic.co/packages/oss-8.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-8.x.list

3. 更新APT软件包索引

bash 复制代码
sudo apt update

4. 安装filebeat

bash 复制代码
sudo apt install filebeat

5. 配置filebeat

bash 复制代码
sudo vim /etc/filebeat/filebeat.yml
# 根据需求修改配置

6. 启动filebeat

bash 复制代码
sudo systemctl enable filebeat
sudo systemctl start filebeat
相关推荐
Herbig2 分钟前
服务器上安装node
linux·node.js
敖云岚23 分钟前
【Linux】Centos7 安装 Docker 详细教程
linux·运维·服务器
北陌宝宝36 分钟前
Jenkins:开启高效软件开发的魔法之门
运维·jenkins
JhonKI44 分钟前
【Linux网络】构建HTTP响应与请求处理系统 - HttpResponse从理解到实现
linux·网络·http
文牧之1 小时前
PostgreSQL 常用日志
运维·数据库·postgresql
蓝莓味柯基1 小时前
DevOps:概念与学习路径
运维·学习·devops
FJW0208141 小时前
【Linux】web服务器的部署和优化
linux·运维·服务器·rhce
Linux运维老纪1 小时前
Python文件操作及数据库交互(Python File Manipulation and Database Interaction)
linux·服务器·数据库·python·云计算·运维开发
weixin_430750931 小时前
智能小助手部署 Win10 + ollama的Deepseek + CentOS+ maxKB
linux·人工智能·机器学习·语言模型·自然语言处理·centos
有谁看见我的剑了?2 小时前
docker 运行时权限和 Linux 能力了解
linux·docker·容器