Source code: raptorz/filebeat-alpine
raptor/filebeatraptor/filebeat:6.4.1version: '2'
services:
filebeat:
image: raptor/filebeat
container_name: filebeat
restart: always
labels:
io.rancher.container.pull_image: always
environment:
- env=QA
- logstash=localhost
- project=demoproject
network_mode: host
volumes:
- /var/lib/filebeat:/var/lib/filebeat
- /var/log/nginx:/var/log/nginx
- /home/user/logs:/home/user
logging:
driver: json-file
options:
max-file: '5'
The log files place in the following path:
PATH/[app_name]/logs/*.log
and mount volume:
volumes:
- PATH:/home/user/
mount the config file path by volume:
volumes:
- /path_to_filebeat_yml:/etc/filebeat
The customized filebeat.yml is placed in path_to_filebeat_yml.
Caution: filebeat.yml must be owned by root.root and attribute is rw-r--r--.
Content type
Image
Digest
Size
12.9 MB
Last updated
almost 8 years ago
docker pull raptor/filebeat