Filebeat is harvesting mysql slow logs and that can be seen on Kibana dashboard but it isnt harvesting the mysql error log files.
Below is the mysql.yml:
# Module: mysql
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.3/filebeat-module-mysql.html
- module: mysql
# Error logs
error:
enabled: true
var.paths: ["/home/cmlogs/mysql_error.log*"]
# Slow logs
slowlog:
enabled: true
var.paths: ["/home/mayank/cmlogs/slow-query.log*"]
---------------------------------------------------------------------------------------
permissions for both the logs is 644 mysql:mysql
