Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 712 Bytes

File metadata and controls

32 lines (21 loc) · 712 Bytes

filebeat-container

docker container with filebeat:7.9.3 on alpine

use for shipping log with sidecar pattern

Usage

  1. prerequirment build image from Dockerfile
docker build -t filebeat .
  1. you can use docker -e put env variable to replace logpath ,endpoint...

env var currently supprt:

  • LOGPATH
  • SCHEMA
  • ELASTICHOST
  • ELASTICINDEX
  1. directly use docker -v to replace your filebeat.yml
docker run -v YOUR-filebeat.yml:/tmp/filebeat.yml filebeat

Contribution

  1. if you want another version support, new a branch name with version number, than request a PR.

  2. if you want more env variabe support, add more rules in entrypoint.sh, than request a PR.