我的cpu是 32core,操作系统是centos6.7,然后我的 filebeat 版本是 5.6.0,
然后我的配置文件内容如下
filebeat.prospectors:
- input_type: log
paths:
- /data/logs/nginx/access.log
document_type: nginxAccess
tail_files: true
ignore_older: 24h
processors:
- decode_json_fields:
fields: ["message",]
process_array: false
max_depth: 1
target:
overwrite_keys: false
output.kafka:
# initial brokers for reading cluster metadata
hosts: ["kafka:9092", "kafka2:9092", "kafka3:9092","kafka4:9092","kafka5:9092"]
# message topic selection + partitioning
topic: '%{[type]}'
partition.round_robin:
reachable_only: false
required_acks: 1
compression: gzip
max_message_bytes: 1000000
然后我的CPU
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
153361 root 20 0 140m 134m 5548 S 820.5 0.1 181:35.73 filebeat
有人遇到过么。各位前辈能帮忙看看么?
然后我的配置文件内容如下
filebeat.prospectors:
- input_type: log
paths:
- /data/logs/nginx/access.log
document_type: nginxAccess
tail_files: true
ignore_older: 24h
processors:
- decode_json_fields:
fields: ["message",]
process_array: false
max_depth: 1
target:
overwrite_keys: false
output.kafka:
# initial brokers for reading cluster metadata
hosts: ["kafka:9092", "kafka2:9092", "kafka3:9092","kafka4:9092","kafka5:9092"]
# message topic selection + partitioning
topic: '%{[type]}'
partition.round_robin:
reachable_only: false
required_acks: 1
compression: gzip
max_message_bytes: 1000000
然后我的CPU
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
153361 root 20 0 140m 134m 5548 S 820.5 0.1 181:35.73 filebeat
有人遇到过么。各位前辈能帮忙看看么?
1 个回复
linjikun - 90IT 单身汪
赞同来自: