不为失败找理由,要为成功找方法。

filebeat收集单行日志文件失败

匿名 | 发布于2018年09月03日 | 阅读数:1419

有一批文件,里面都是一行内容,但是filebeat就是不发送给logstash。
 
想把文件的原文直接发送给logstash,不做过滤,然后存在es上,做个备份。
但是发现filebeat就是不给logstash发,看filebeat的日志,这个文件确实打开了
文件内容如下:
{"content":{"orderNo":"52184819558400","agentComCode":"73000402","externalReqTN":"2018001050441"},"token":"242e72deb40f47de72f27f76f3a6544c"}
 
filebeat需要什么特殊设置吗?
 
已邀请:

JackGe

赞同来自:

参考filebeat配置  https://www.elastic.co/guide/e ... .html
- module: logstash
# logs
#log:
#enabled: true

# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
# var.paths:

# Slow logs
#slowlog:
#enabled: true
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
#var.paths:

要回复问题请先登录注册