Skip to content

Instantly share code, notes, and snippets.

@churrops
Created June 18, 2018 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save churrops/1a2c05359d77d45ddb83831ee5787f2f to your computer and use it in GitHub Desktop.
Save churrops/1a2c05359d77d45ddb83831ee5787f2f to your computer and use it in GitHub Desktop.
/etc/filebeat/modules.d/mysql.yml
- module: mysql
# 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: ["/var/log/mariadb/mariadb.log"]
# Slow logs
slowlog:
enabled: true
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
var.paths: ["/var/log/mariadb/slow_query.log"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment