Created
May 23, 2019 03:27
-
-
Save zthxxx/a6fe6a7370667fdd64476fe88b1e99a4 to your computer and use it in GitHub Desktop.
filebeat config (json)
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
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