All Projects → umputun → Docker Logger

umputun / Docker Logger

Licence: mit
Logs collector for docker

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Docker Logger

Analog
PHP logging library that is highly extendable and simple to use.
Stars: ✭ 314 (+149.21%)
Mutual labels:  logging, logger, syslog
Quicklogger
Library for logging on files, console, memory, email, rest, eventlog, syslog, slack, telegram, redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi/Firemonkey/freepascal/.NET (Windows/Linux/OSX/IOS/Android).
Stars: ✭ 137 (+8.73%)
Mutual labels:  logging, logger, syslog
Silencer
Easily suppress the Rails logger
Stars: ✭ 116 (-7.94%)
Mutual labels:  logging, logger
Logbert
Logbert is an advanced log message viewer for log4net, log4j and others.
Stars: ✭ 70 (-44.44%)
Mutual labels:  logging, syslog
Logback Access Spring Boot Starter
Spring Boot Starter for Logback-access
Stars: ✭ 118 (-6.35%)
Mutual labels:  logging, logger
Serverlog
A simple, practical and innovative Node.js log library that enables you to view logs in Chrome dev tools and browser Console.
Stars: ✭ 117 (-7.14%)
Mutual labels:  logging, logger
Log Viewer
Web UI to viewing logs
Stars: ✭ 59 (-53.17%)
Mutual labels:  logging, logger
React Native Logs
Performance-aware simple logger for React-Native with namespaces, custom levels and custom transports (colored console, file writing, etc.)
Stars: ✭ 84 (-33.33%)
Mutual labels:  logging, logger
Heroku Logger
A dead simple logger, designed to be perfect for Heroku apps.
Stars: ✭ 57 (-54.76%)
Mutual labels:  logging, logger
Punt
Punt is a tiny and lightweight daemon which helps ship logs to Elasticsearch.
Stars: ✭ 98 (-22.22%)
Mutual labels:  logging, syslog
Logtrail
Kibana plugin to view, search & live tail log events
Stars: ✭ 1,343 (+965.87%)
Mutual labels:  logging, syslog
Rsyslog
a Rocket-fast SYStem for LOG processing
Stars: ✭ 1,385 (+999.21%)
Mutual labels:  logging, syslog
Bulk
👨‍💻 Bulk is a library for buffering the objects. Pipeline(Sink) receives the object and emits the object bulked.
Stars: ✭ 59 (-53.17%)
Mutual labels:  logging, logger
Yii2 Psr Log Target
Yii 2.0 log target that is able to write messages to PSR-3 compatible logger
Stars: ✭ 58 (-53.97%)
Mutual labels:  logging, logger
Android Filelogger
A general-purpose logging library with built-in support to save logs to file efficiently.
Stars: ✭ 70 (-44.44%)
Mutual labels:  logging, logger
Log
Structured logging package for Go.
Stars: ✭ 1,094 (+768.25%)
Mutual labels:  logging, logger
Loguru
Python logging made (stupidly) simple
Stars: ✭ 10,510 (+8241.27%)
Mutual labels:  logging, logger
Node Lambda Log
Basic logging mechanism for Node 6.10+ Lambda Functions
Stars: ✭ 115 (-8.73%)
Mutual labels:  logging, logger
Plog
Portable, simple and extensible C++ logging library
Stars: ✭ 1,061 (+742.06%)
Mutual labels:  logging, logger
Ios Sdk
AppSpector is a debugging service for mobile apps
Stars: ✭ 56 (-55.56%)
Mutual labels:  logging, logger

docker-logger Go Report Card Docker Automated build

docker-logger is a small application collecting logs from other containers on the host that started without the -t option and configured with a logging driver that works with docker logs (journald and json-file). It can forward both stdout and stderr of containers to local, rotated files and/or to remote syslog.

note: dkll inlcudes all functionality of docker-logger, but adds server and cli client

Install

Copy provided docker-compose.yml, customize if needed and run with docker-compose up -d. By default docker-logger will collect all logs from containers and put it to ./logs directory.

Customization

All changes can be done via container's environment in docker-compose.yml or with command line

Command line Environment Default Description
--docker DOCKER_HOST unix:///var/run/docker.sock docker host
--syslog-host SYSLOG_HOST 127.0.0.1:514 syslog remote host (udp4)
--files LOG_FILES No enable logging to files
--syslog LOG_SYSLOG No enable logging to syslog
--max-size MAX_SIZE 10 size of log triggering rotation (MB)
--max-files MAX_FILES 5 number of rotated files to retain
--mix-err MIX_ERR false send error to std output log file
--max-age MAX_AGE 30 maximum number of days to retain
--exclude EXCLUDE excluded container names, comma separated
--include INCLUDE only included container names, comma separated
--include-pattern INCLUDE_PATTERN only include container names matching a regex
TIME_ZONE UTC time zone for container
--json, -j JSON false output formatted as JSON
  • at least one of destinations (files or syslog) should be allowed
  • location of log files can be mapped to host via volume, ex: - ./logs:/srv/logs (see docker-compose.yml)
  • both --exclude and --include flags are optional and mutually exclusive, i.e. if --exclude defined --include not allowed, and vise versa.
  • both --include and --include-pattern flags are optional and mutually exclusive, i.e. if --include defined --include-pattern not allowed, and vise versa.

Build from the source

  • clone this repo - git clone https://github.com/umputun/docker-logger.git
  • build the logger - cd docker-logger && docker build -t umputun/docker-logger .
  • try it - docker run -it --rm -v $(pwd)/logs:/srv/logs -v /var/run/docker.sock:/var/run/docker.sock umputun/docker-logger /srv/docker-logger --files
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].