Last active
August 2, 2017 19:47
-
-
Save DravenJohnson/80843832dca33bbf66761c8463d70579 to your computer and use it in GitHub Desktop.
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: | |
prospectors: | |
- | |
paths: | |
- /var/log/program/program.log* | |
input_type: log | |
exclude_lines: ["\"msg\":\"[a-z_]+\""] | |
include_lines: ["\"event\":\"[a-z_]+\""] | |
exclude_files: [".gz$"] | |
document_type: event_logs | |
fields: | |
record_type: "server_logs" | |
fields_under_root: true | |
scan_frequency: 10s | |
tail_files: false | |
spool_size: 2048 | |
idle_timeout: 5s | |
# Name of the registry file that tracks sent log lines | |
registry_file: /var/lib/filebeat/registry | |
output: | |
logstash: | |
hosts: ["logs.example.com:5044"] | |
max_retries: -1 | |
tls: | |
# Certificate stuff | |
insecure: false | |
logging: | |
# All Default except rotate | |
files: | |
rotateeverybytes: 10485760 # = 10MB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment