Filebeat is a lightweight shipper for logs. This Docker Filebeat image to provide convenient way to test your log messages from console input (stdin), parse them via json codec and finally display them on console (stdout) as well.
- Support console input immediately
- Support console output (codec.json)
- Support multiple filebeat configuration files (/conf.d)
- config_dir: the full path to the directory that contains additional configuration files.
# interactive mode
$ docker run -it chhuang/docker_image_filebeat:latest
When docker container is created. You could paste you log message on console and press ENTER key. It will parse your log message and output on console.
$ docker run \
-it -v /path/to/config_folder:/conf.d \
chhuang/docker_image_filebeat:latest
Or, you could customize it on your Dockerfile:
# Dockerfile
FROM chhuang/docker_image_filebeat:latest
COPY /path/to/config_folder /conf.d
$ docker build -t namespace/repo .
$ docker run namespace/repo