【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
相关推荐
碎梦归途6 分钟前
思科网络设备配置命令大全,涵盖从交换机到路由器的核心配置命令
linux·运维·服务器·网络·网络协议·路由器·交换机
七维大脑虚拟机7 分钟前
飞牛NAS公网IPv6+DDNS远程访问零延迟教程
运维·服务器·网络
小天源27 分钟前
nginx在centos7上热升级步骤
linux·服务器·nginx
AZ996ZA1 小时前
自学linux第十八天:【Linux运维实战】系统性能优化与安全加固精要
linux·运维·安全·性能优化
大虾别跑1 小时前
OpenClaw已上线:我的电脑开始自己打工了
linux·ai·openclaw
weixin_437044642 小时前
Netbox批量添加设备——堆叠设备
linux·网络·python
hhy_smile2 小时前
Ubuntu24.04 环境配置自动脚本
linux·ubuntu·自动化·bash
一体化运维管理平台2 小时前
DevOps落地利器:美信监控易如何打通开发与运维?
运维
宴之敖者、3 小时前
Linux——\r,\n和缓冲区
linux·运维·服务器
LuDvei3 小时前
LINUX错误提示函数
linux·运维·服务器