I re-read your question again and I saw that you mentioned metricbeat. Logs are ingested into the elastic stack with filebeat, so maybe the issue is there.
Could you check for me if filebeat is configured, and what is the nginx module configuration?
Mar 12 07:21:39 dev-nginx01.isoftbet.com filebeat[19051]: 2020-03-12T07:21:39.866-0400 INFO log/input.go:152 Configured paths: [/var/log/nginx/access.log*]
Mar 12 07:21:39 dev-nginx01.isoftbet.com filebeat[19051]: 2020-03-12T07:21:39.867-0400 INFO log/input.go:152 Configured paths: [/var/log/nginx/error.log*]
Mar 12 07:21:39 dev-nginx01.isoftbet.com filebeat[19051]: 2020-03-12T07:21:39.874-0400 INFO log/input.go:152 Configured paths: [/var/log/messages* /var/log/syslog*]
Mar 12 07:21:39 dev-nginx01.isoftbet.com filebeat[19051]: 2020-03-12T07:21:39.876-0400 INFO log/input.go:152 Configured paths: [/var/log/auth.log* /var/log/secure*]
Mar 12 07:21:39 dev-nginx01.isoftbet.com filebeat[19051]: 2020-03-12T07:21:39.876-0400 INFO crawler/crawler.go:106 Loading and starting Inputs completed. Enabled inputs: 0
Mar 12 07:21:39 dev-nginx01.isoftbet.com filebeat[19051]: 2020-03-12T07:21:39.876-0400 INFO cfgfile/reload.go:171 Config reloader started
Mar 12 07:21:39 dev-nginx01.isoftbet.com filebeat[19051]: 2020-03-12T07:21:39.880-0400 INFO log/input.go:152 Configured paths: [/var/log/nginx/access.log*]
Mar 12 07:21:39 dev-nginx01.isoftbet.com filebeat[19051]: 2020-03-12T07:21:39.880-0400 INFO log/input.go:152 Configured paths: [/var/log/nginx/error.log*]
this is my filebeat.yml
- type: log
# Change to true to enable this input configuration.
enabled: false
# Paths that should be crawled and fetched. Glob based paths.
paths:
- /var/log/*.log
- /var/log/nginx/*
also
root@dev-nginx01:[~]# filebeat modules list
Enabled:
nginx
system
I think we are getting close. The first two lines on your output mention:
Mar 12 07:21:39 [...] Configured paths: [/var/log/nginx/access.log*]
Mar 12 07:21:39 [...] Configured paths: [/var/log/nginx/error.log*]
The patterns there should be /var/log/nginx/*access.log* and /var/log/nginx/*error.log* so the es_ prefixed files in the listing that you shared with me will be included.
Next to your filebeat.yml there should be a modules.d/nginx.yml. If they are not set already, try adding the necessary var.paths configuration there.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.