Sign inSign up

jfahrer/fluentd

By jfahrer

•Updated over 8 years ago

This image can be used to setup a logging solution for based on Fluentd and Loggly

Image
0

248

jfahrer/fluentd repository overview

This image ships with Fluentd + the fluent-plugin-loggly plugin. Logs are forwarded to Loggly.

⁠Usage

You can publish port 24224 and start forwarding your logs to Fluentd.

Example Compose file:

services:
  fluentd:
    image: jfahrer/fluentd:v1.1.0-loggly
    ports:
      - 24224:24224
    environment:
      - LOGGLY_TOKEN=ABC
    logging:
      driver: json-file
      options:
        max-size: 30m
        max-file: 3

  some_service:
    logging:
      driver: fluentd
      options:
        fluentd-address: 127.0.0.1:24224
        tag: some.tag

You need to create and set a Customer Token⁠ in order to be able to forward the logs to Loggly. See the section about environment variables for more information.

⁠Environment variables

  • LOGGLY_TOKEN_FILE: The file to read the Customer Token from
  • LOGGLY_TOKEN: The Customer Token that will be used to forward logs to Loggly. The token will be overwritten with the content of LOGGLY_TOKEN_FILE if set.

⁠Disclaimer

This image is not intended to be used in production. Its sole purpose is to demonstrate the functionalities of Docker. Head to https://LearnDocker.online⁠ for more information.

Tag summary

Content type

Image

Digest

Size

12.2 MB

Last updated

over 8 years ago

docker pull jfahrer/fluentd:v1.1.0-loggly