Skip to content

Instantly share code, notes, and snippets.

@zthxxx
Created May 23, 2019 03:27
Show Gist options
  • Save zthxxx/a6fe6a7370667fdd64476fe88b1e99a4 to your computer and use it in GitHub Desktop.
Save zthxxx/a6fe6a7370667fdd64476fe88b1e99a4 to your computer and use it in GitHub Desktop.
filebeat config (json)
filebeat.prospectors:
- input_type: log
paths:
- /var/log/project/*.log
json.keys_under_root: true
json.add_error_key: true
json.overwrite_keys: true
output.kafka:
hosts: ["kafka-host"]
topic: gen_log_valid
partition.round_robin:
reachable_only: true
bulk_max_size: 40920
timeout: 10
keepalive: 3600
flush_interval: 1
required_acks: 1
compression: gzip
max_message_bytes: 1000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment