Filebeat入门及使用-1 控制台输入,控制台输出
软件版本:CentOS 7.4ES 7.6.1版,Filebeat7.6.1版ES7.6.1 安装,可参考博文【ElasticSearch】 ElasticSearch安装(一) - H__D - 博客园案例1, 控制台输入,控制台输出1 新建配置文件test.yml# 输入filebeat.inputs:# 标准输入- type: stdinenabled: true# 输出# 输出到控制台ou
·
软件版本:
CentOS 7.4
ES 7.6.1版,Filebeat7.6.1版
ES7.6.1 安装,可参考博文
【ElasticSearch】 ElasticSearch安装(一) - H__D - 博客园
案例1, 控制台输入,控制台输出
1 新建配置文件test.yml
# 输入
filebeat.inputs:
# 标准输入
- type: stdin
enabled: true
# 输出
# 输出到控制台
output.console:
pretty: true
enable: true
2 启动filebeat,指定配置文件运行filebeat
命令:./filebeat -e -c test.yml
- -c:配置文件位置
- -e:关闭日志输出dd
3 在控制台输入hello,效果如下
后台启动filebeat
nohup ./filebeat -e -c xxxx.yml > filebeat.log &
关闭命令:
查看filebeat进程:ps -ef | grep filebeat
杀死进程:kill pid
更多推荐
已为社区贡献4条内容
所有评论(0)