Skip to content

Instantly share code, notes, and snippets.

@DravenJohnson
Last active August 2, 2017 19:47
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 DravenJohnson/80843832dca33bbf66761c8463d70579 to your computer and use it in GitHub Desktop.
Save DravenJohnson/80843832dca33bbf66761c8463d70579 to your computer and use it in GitHub Desktop.
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