用filebeat收集nginx日志
filebeat报错:Non-zero metrics in the last 30s
收不到日志
filebeat.yml
filebeat.prospectors:
- type: log
enabled: true
paths:
- /var/log/nginx/*.log
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: true
setup.template.settings:
index.number_of_shards: 3
setup.kibana:
output.file:
path: "/tmp"
filename: "filebeat.txt"
nginx日志目录权限:
drwxr-xr-x 2 nginx nginx 39 Feb 9 15:16 nginx
nginx日志文件权限:
-rw-r--r-- 1 nginx nginx 32522 Feb 9 15:31 access.log
-rw-r--r-- 1 nginx nginx 0 Feb 9 14:45 error.log
请各位高人指点!
filebeat报错:Non-zero metrics in the last 30s
收不到日志
filebeat.yml
filebeat.prospectors:
- type: log
enabled: true
paths:
- /var/log/nginx/*.log
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: true
setup.template.settings:
index.number_of_shards: 3
setup.kibana:
output.file:
path: "/tmp"
filename: "filebeat.txt"
nginx日志目录权限:
drwxr-xr-x 2 nginx nginx 39 Feb 9 15:16 nginx
nginx日志文件权限:
-rw-r--r-- 1 nginx nginx 32522 Feb 9 15:31 access.log
-rw-r--r-- 1 nginx nginx 0 Feb 9 14:45 error.log
请各位高人指点!
1 个回复
medcl - 今晚打老虎。
赞同来自: