我按照这里提到的所有步骤执行了readthedocs,但是我的文件节拍没有将日志发送到url http://localhost:9200/_search?pretty。
我的filebeat.yml文件是- https://ghostbin.com/paste/rrjeh
我没有配置前面提到的任何logstash文件。
我的注册表文件在filebeat启动后填满,filebeat日志(syslog)没有显示有关filebeat的错误
发布于 2016-07-15 06:10:21
在/etc/filebeat/filebeat.yml
的底部,您应该会看到一个"logging“部分。您需要将其取消注释,并为您填写相应的字段。也许一些日志输出将有助于阐明您的问题。
logging:
to_files: true
files:
path: /var/log/filebeat
name: filebeat.log
rotateeverybytes: 10485760 # = 10MB
keepfiles: 7
level: debug
发布于 2016-11-07 15:38:00
我的机器上安装了filebeat版本5.0.0。出于调试和日志记录的目的,filebeat.yml文件的日志记录部分中的以下配置对我有帮助:
logging.level: debug
logging.to_files: true
logging.to_syslog: false
logging.files:
path: /var/log/mybeat
name: mybeat.log
keepfiles: 7
来源- https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html
发布于 2016-06-02 00:26:04
您可以将filebeat的日志级别更改为'info‘,以查看它尝试连接到logstash。
你的readthedocs链接当前是断开的,但是如果你没有配置logstash在5044端口上使用filebeat输入,并且为它创建了一个合适的证书,这肯定不会发送日志,因为filebeat只会得到一个拒绝的连接。
如果您不想使用logstash进行任何解析,您可以只使用filebeat的elasticsearch输出,并一起跳过logstash。
https://stackoverflow.com/questions/37565432
复制相似问题