Includes Mongo plugin for fluentd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lauri Võsandi b0bc2b0c64 Make it possible to run via `docker-compose` 11 months ago
config Assume UTF-8 for log records 11 months ago
.gitignore Add syslog handling 12 months ago
Dockerfile Fix username typo 11 months ago Use subsecond precision for Docker 12 months ago
docker-compose.yml Make it possible to run via `docker-compose` 11 months ago
overnode.yml Add docker-compose.yml 12 months ago Add --include-container argument 12 months ago

Fluentd with MongoDB plugin

This Docker image bundles MongoDB plugin with Fluentd. It allows you to ship various logs to your MongoDB.

Running in production

To collect container logs on a Docker host populate .env with MONGO_URI and deploy docker-compose.yml on all Docker hosts.

In Docker host adjust /etc/docker/daemon.json

  "log-driver": "fluentd",
  "log-opts": {
    "fluentd-address": "",
    "fluentd-sub-second-precision": true

Proceed to reload Docker daemon.

Enable syslog forwarding:

echo '*.* @' | tee /etc/rsyslog.d/fwd.conf
systemctl restart rsyslog

Dumping logs

To dump logs on console:

pip3 install motor termcolor
source .env
export MONGO_URI

Why not Loki?

Loki is ridiculously complex to set up for HA setup.