Skip to content

It's a modificated version of official FluentD image with support of integration with Coralogix, multiprocessing and K8S.

Notifications You must be signed in to change notification settings

raj-prakarsh/fluentd-coralogix-image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FluentD-Coralogix-Docker-Image

It's a modificated version of official FluentD image with support of integration with Coralogix and K8S.

Installation

You can build image manually with cmake utility

$ make build

or pull ready image from our repository:

$ docker pull coralogixrepo/fluentd-coralogix-image:latest

Also you can deploy this image with docker-compose. For details watch Docker-compose example.

Features

This image provides collecting logs from:

Syslog

For example you can setup sending logs from nginx:

http {
...
access_log    syslog:server=<FLUENTD_HOST>:5140,tag=nginx_access;
error_log     syslog:server=<FLUENTD_HOST>:5140,tag=nginx_error info;
...

Graylog2

This service listen port 12201 and can receive message in Graylog2 format, for example from Docker GELF.

HTTP

It received logs in JSON format:

$ curl -X POST -d 'json={"action":"login","user":2}' \
$ http://<FLUENTD_HOST>:9880/applications.tag_name;

also data includes sender hostname information(hostname).

FluentD

Used to receive event logs from other Fluentd instances, the fluent-cat command, or client libraries.

For example can be provided for Docker.

If you run container manualy

$ docker run -dit \
$ --log-driver=fluentd \
$ --log-opt fluentd-address=<FLUENTD_HOST>:24224 \
$ alpine echo "Hello world!"

or with docker-compose:

version: "3"
services:
  web:
    restart: always
    image: nginx
    container_name: nginx
    environment:
      - NGINX_HOST=example.com
    logging:
      driver: fluentd
      options:
        fluentd-address: <FLUENTD_HOST>:24224
    ports:
      - "80:80"
      - "443:443"

Kubernetes (K8S)

This image have K8S support. For details watch Kubernetes example. Also you can install it with Helm package manager.

Development

This image build automatically with Travis CI. To provide image version add tag to your commit and it will be grabbed with CI worker.

Attention!

Image will be built only if commit was made in master branch. If you want to change this condition see .travis.yml.

About

It's a modificated version of official FluentD image with support of integration with Coralogix, multiprocessing and K8S.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 54.0%
  • Dockerfile 36.5%
  • Makefile 9.5%