Sign inSign up

raptor/filebeat

By raptor

•Updated almost 8 years ago

Filebeat with alpine 3.8

Image
0

294

raptor/filebeat repository overview

Source code: raptorz/filebeat-alpine⁠

⁠Versions

  • latest: raptor/filebeat
  • 6.4.1: raptor/filebeat:6.4.1

⁠docker-compose.yml

version: '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'

⁠Basic usage

  1. default config

The log files place in the following path:

PATH/[app_name]/logs/*.log

and mount volume:

volumes:
  - PATH:/home/user/ 
  1. customize config:

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--.

Tag summary

Content type

Image

Digest

Size

12.9 MB

Last updated

almost 8 years ago

docker pull raptor/filebeat