首页域名资讯 正文

ELK beats yum和命令行工具(13th)

2025-01-23 1 0条评论

这篇是配置yum源和beat命令行。

为yum添加beats库

下载并安装公共签名证书:

1 # rpm –import https://trustauth.cn/GPG-KEY-elasticsearch

添加repo文件:

1 2 3 4 5 6 7 # vim /etc/yum.repo.d/beats.repo [ beats ] name = Elastic Beats Repository baseurl = https : //trustauth.cn/beats/yum/el/$basearch enabled = 1 gpgkey = https : //trustauth.cn/GPG-KEY-elasticsearch gpgcheck = 1

安装Filebeat、Packetbeat、Topbeat:

1 2 3 # yum install filebeat # yum install packetbeat # yum install topbeat

这三个beat下文每个介绍过去。

命令行工具

下面的命令行选项可用于所有的beat。当然啦,每个beat也可以有自己的独特的选项,这个看各自的文档。

-N

禁止将事件发送到已定义的输出。该选项主要用于测试beat。

-c <file>

指定beat配置文件。

-cpuprofile <output file>

将CPU profile  数据写入到指定文件。该选项主要用于beat排错。

-d <selectors>

为指定的selectors启用debug。对于selectors 可以指定用逗号分隔的列表组件,也可以使用-d “*” 启用debug所有组件。例如  -d "publish" 显示所有 “publish” 有关的消息。

-e

记录到stderr,和禁用系统日志或文件输出。

-memprofile <output file>

将 memory profile 数据写入到指定文件。该选项主要用于beat排错。

-configtest

测试配置文件是否正确。该选项主要用于beat配置排错。

-v

输出INFO级别相信信息。

-version

显示beat版本信息。

文章转载来自:trustauth.cn

文章版权及转载声明

本文作者:亿网 网址:https://edns.com/ask/post/150702.html 发布于 2025-01-23
文章转载或复制请以超链接形式并注明出处。