确保 elasticsearch:6.4.3 和 kibana:6.4.3 已经运行
创建文件夹:
mkdir config
mkdir log
vim config/filebeat.ymlfilebeat.inputs:
- type: log
enabled: true
paths:
- /var/log/*.log
setup.template.settings:
index.number_of_shards: 3
output.elasticsearch:
hosts: ["elasticsearch643:9200"]
docker run --name filebeat643 \
--network elk \
-v $PWD/config/filebeat.yml:/myapp/filebeat.yml \
-v $PWD/log:/path/to/your/log/dir \
-d \
job520/filebeat:6.4.3
Content type
Image
Digest
sha256:ea72190dd…
Size
82.7 MB
Last updated
about 3 years ago
docker pull job520/filebeat:6.4.3