Hi,
New user here.
My installation is properly pulling error logs from: /var/log/nginx/error.log*
But how do I make it so it also pulls the individual error log data from the sites as in this pattern:
/var/log/nginx/*.error.log
Thanks
Hi,
New user here.
My installation is properly pulling error logs from: /var/log/nginx/error.log*
But how do I make it so it also pulls the individual error log data from the sites as in this pattern:
/var/log/nginx/*.error.log
Thanks
You can go into the modules.d/nginx.yml and set the paths
- module: nginx
# Access logs
access:
enabled: true
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
#var.paths:
# Error logs
error:
enabled: true
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
var.paths: ["/path/to/log/nginx/error.log*", "/var/log/nginx/*.error.log"]
Thank you. What's the full path? Sorry - the last time I used Elastic you had separate filebeat and metricbeat configs.
Sorry, I'm confused Are you using Elastic Agent? Or Filebeat
What version are you on of the stack?
© 2020. All Rights Reserved - Elasticsearch
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.