Hi,
I installed Filebeat 6.2 and enabled Mysql module to monitor our MariaDB / Mysql server. I configured filebeat.yml and mysql.yml as following:
filebeat.yml
filebeat.prospectors:
- type: log
fields.logtype: "MariaDBerror"
enabled: true
paths:
- C:\Program Files\MariaDB 10.2\data\LAPTOP-milad-slow.log
- C:\Program Files\MariaDB 10.2\data\LAPTOP-milad.err
multiline.pattern: '^\#####'
multiline.negate: true
multiline.match: after
#============================= Filebeat modules ===============================
filebeat.config.modules:
#path: ${path.config}/modules.d/*.yml
path: C:\ProgramData\Elastic\filebeat\modules.d\mysql.yml
reload.enabled: true
#==================== Elasticsearch template setting ==========================
setup.template.settings:
index.number_of_shards: 3
#============================== Dashboards =====================================
setup.dashboards.enabled: true
#============================== Kibana =====================================
setup.kibana:
host: "localhost:5601"
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
hosts: ["localhost:9200"]
filebeat\modules.d\mysql.yml
- module: mysql
# Error logs
error:
enabled: true
var.paths: 'C:\Program Files\MariaDB 10.2\data\LAPTOP-milad.err'
# Slow logs
slowlog:
enabled: true
var.paths: 'C:\Program Files\MariaDB 10.2\data\LAPTOP-milad-slow.log'
So in Kibana when i open Filebeat Mysql Overview dashboard it shows no results found.
I got events in discover page so my filebeat sending logs to the elasticsearch and i see them in discover page.
I used http://www.yamllint.com/ to check errors with mysql.yml file, and it seems ok.
Appreciate help with this.