Skip to content

Instantly share code, notes, and snippets.

@churrops
Created June 18, 2018 01:45
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/8f2b2b01818290ae8d8b01cd05b1704c to your computer and use it in GitHub Desktop.
Save churrops/8f2b2b01818290ae8d8b01cd05b1704c to your computer and use it in GitHub Desktop.
/usr/share/filebeat/module/mysql/slowlog/config/slowlog.yml
type: log
paths:
{{ range $i, $path := .paths }}
- {{$path}}
{{ end }}
exclude_files: ['.gz$']
multiline:
# pattern: '^# User@Host: '
pattern: '^# Time: '
negate: true
match: after
# exclude_lines: '^# Time: '
#exclude_lines: ['^[\/\w\.]+, Version: .* started with:.*'] # Exclude the header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment