Coder Social home page Coder Social logo

logshifter's Introduction

logshifter Build Status

A simple log pipe designed to maintain consistently high input consumption rates, preferring to drop old messages rather than block the input producer.

The primary design goals are:

  • Minimal blocking of the input producer
  • Asynchronous dispatch of log events to an output
  • Sacrifice delivery rate for input processing consistency
  • Fixed maximum memory use as a factor of configurable buffer sizes
  • Pluggable and configurable outputs

logshifter is useful for capturing and redirecting output of heterogenous applications which emit logs to stdout rather than to a downstream aggregator (e.g. syslog) directly.

Configuration

An optional configuration file can be supplied to logshifter with the -config flag. The file is a list of key value pairs in the format k = v, one per line. The possible options and their defaults are described in the Config type. Keys are case insensitive.

Statistics

Periodic stats can be emitted to a file using the -statsfilename argument. The stats are written in JSON format on an interval specified by -statsinterval (which is a string in a format expected by the golang time.ParseDuration function).

Note that enabling statistics will introduce extra processing overhead.

logshifter's People

Contributors

ironcladlou avatar ncdc avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

etsauer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.