Created
September 11, 2018 09:47
-
-
Save meitei11/d18197e97caf26ae784b11ab1c3af13c to your computer and use it in GitHub Desktop.
sample prospector to collect logs from multiple sources (nginx, applications, mysql) with topic definitions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- | |
exclude_files: | |
- .bz$ | |
fields: | |
log_topic: nginx-logs | |
paths: | |
- /var/logs/nginx/*_access_log | |
scan_frequency: 10s | |
type: log | |
- | |
exclude_files: | |
- .bz2$ | |
fields: | |
log_topic: java-logs | |
paths: | |
- /var/logs/java/*.log | |
scan_frequency: 10s | |
multiline.pattern: '^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}' | |
multiline.negate: true | |
multiline.match: after | |
type: log | |
- | |
exclude_files: | |
- .gz$ | |
fields: | |
log_topic: mysql-slow-log | |
paths: | |
- /var/logs/mysql/*.slow | |
scan_frequency: 10s | |
multiline.pattern: ^# User@Host | |
multiline.negate: true | |
multiline.match: after | |
type: log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment