【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
相关推荐
Tokai_Teio_112 分钟前
第四届黄河流域 misc
运维·服务器
hj28625144 分钟前
Linux 网络服务综合笔记(概念 + 命令 + 实操案例)2
linux·运维·网络
what_20181 小时前
Linux 磁盘 (查看、划分、inode)
linux·运维·服务器
ManageEngine卓豪1 小时前
从性能故障到安全风险,现代企业数字化转型下的网络丢包运维管控指南
运维·网络安全·网络故障·网络丢包
2739920291 小时前
GDB调试(Linux)
linux
凡人叶枫1 小时前
Effective C++ 条款23:宁以 non-member、non-friend 替换 member 函数
linux·开发语言·c++·嵌入式开发
不会C语言的男孩2 小时前
Linux 系统编程 · 第 4 章:文件属性与元数据
linux·c语言·开发语言
小生不才yz2 小时前
Shell脚本精读 · S02-03 | 词拆分、通配符与未加引号的变量
linux
2601_961845422 小时前
法考真题及答案解析|历年真题|资料已整理
linux·windows·ubuntu·macos·centos·gnu
A_humble_scholar2 小时前
Linux(七)调度器:从硬件矛盾到进程切换的底层逻辑
linux·服务器·网络