制作filebeat底包镜像,接入dubbo服务消费者采集日志,并将日志输出到kafka。
配置 filebeat
[root@node7-200 ~]cat filebeat-7.14.1-linux-x86_64.tar.gz.sha512
bbc18f796172ab195632b54fea8c340d38f70cf27a98c00eccf701da3a6e022ff8fe9ce0937fa6da9c71ae9b3fba42e6f723ff802739bc660bdab410bac4d15b filebeat-7.14.1-linux-x86_64.tar.gz
[root@node7-200 ~]# mkdir /data/dockerfile/filebeat
[root@node7-200 ~]# cd /data/dockerfile/filebeat/
[root@node7-200 filebeat]# cat docker-entrypoint.sh
#!/bin/bash
ENV=${ENV:-"test"}
PROJ_NAME=${PROJ_NAME:-"no-define"}
MULTILINE=${MULTILINE:-"^\d{2}"}
cat > /etc/filebeat.yaml << EOF
filebeat.inputs:
- type: log
fields_under_root: true
fields:
topic: logm-${PROJ_NAME}
paths: