https://github.com/djenriquez/filebeat
Dockerized Filebeat
https://github.com/djenriquez/filebeat
Last synced: about 1 month ago
JSON representation
Dockerized Filebeat
- Host: GitHub
- URL: https://github.com/djenriquez/filebeat
- Owner: djenriquez
- License: mit
- Created: 2017-08-22T17:52:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-27T23:04:20.000Z (over 7 years ago)
- Last Synced: 2025-02-01T18:42:48.920Z (3 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dockerized Filebeat
This repo produces a docker version of elastic.co's filebeat service, which differ from other images in that it allows configuration by environment variable.You can either mount a a config to `$FILEBEAT_CONFIG_DIR/$FILEBEAT_CONFIG_FILE` OR pass a config into `$FILEBEAT_LOCAL_CONFIG`.
# To Run:
## Env config
```sh
docker run -d \
--name filebeat \
--net host \
-e FILEBEAT_LOCAL_CONFIG='
filebeat.prospectors:
- input_type: log
paths:
- /var/log/*.log
output.elasticsearch:
hosts: ["192.168.1.42:9200"]' \
djenriquez/filebeat:v5.6.2
```## Mounted config
```sh
docker run -d \
--name filebeat \
--net host \
-e FILEBEAT_CONFIG_DIR=/ \
-e FILEBEAT_CONFIG_FILE=myconfig.yml \
-v "/etc/myconfig.yml:/myconfig.yml" \
djenriquez/filebeat:v5.6.2
```