Filebeat、Logstash、Rsyslog
各种姿势采集Nginx日志
在filebeat的安装目录找到filebeat.yml
配置获取日志文件的路径及输出到ES的配置。
具体:
- type: log
# Change to true to enable this input configuration.
enabled: true
# Paths that should be crawled and fetched. Glob based paths.
paths:
#- /var/log/*.log
- /usr/local/nginx/logs/*.log
#- c:\programdata\elasticsearch\logs\*