Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/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