Skip to content

chhuang0123/docker_image_filebeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Filebeat Image

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.

Filebeat Version

Features

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

How to Run?

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

Run Example:

demo

How to use your configuration files?

$ 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

Reference:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages