Last active
November 30, 2021 14:53
-
-
Save mosheeshel/54e49e46b95711ce4b566f281a9f0827 to your computer and use it in GitHub Desktop.
reference filebeat configuration
This file contains 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
############################# Filebeat ###################################### | |
filebeat: | |
prospectors: | |
- | |
paths: | |
- /var/log/<APP>/app.log | |
fields: | |
logzio_codec: plain | |
token: ${token} | |
application: app # Custom field and value (can be filtered in logz.io) | |
environment: ${logs_env} | |
fields_under_root: true | |
include_lines: "^(INFO|ERROR|CRIT|WARN|FATAL)" | |
ignore_older: 24h | |
document_type: <logzio_document_type> | |
multiline: | |
pattern: "^([.*] DEBUG|INFO|ERROR|CRIT|WARN|FATAL)" | |
negate: true | |
match: after | |
max_lines: 500 | |
timeout: 5s | |
registry_file: /var/lib/filebeat/registry | |
############################# AGENT Logs ################################## | |
logging: | |
level: info | |
# enable file rotation with default configuration | |
to_files: true | |
# do not log to syslog | |
to_syslog: false | |
files: #logs filebeat stuff | |
path: /var/log/filebeat | |
name: filebeat.log | |
keepfiles: 7 | |
############################# Output ########################################## | |
output: | |
logstash: | |
hosts: ["listener.logz.io:5015"] | |
tls: | |
certificate_authorities: ['/etc/pki/tls/certs/COMODORSADomainValidationSecureServerCA.crt'] | |
ssl: #required for newer filebeat versions, do not work with tls anymore | |
certificate_authorities: ['/etc/pki/tls/certs/COMODORSADomainValidationSecureServerCA.crt'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment