Giter VIP home page Giter VIP logo

daniilyar / logspout-logstash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anashaka/logspout-logstash

0.0 2.0 0.0 39 KB

Logstash adapter for usage in Kubernetes. Supports multi-line. Only supports TCP protocol. Does retries with backoff and does NOT miss logs if Logstash is unavailable for some short amount of time (< 10minutes). Has connection pooling. Tested on K8 1.4.7, docker 1.12 and logstash 2.4.0

License: Apache License 2.0

Makefile 3.98% Go 96.02%

logspout-logstash's Introduction

logspout-logstash

CircleCI Coverage Status

A minimalistic adapter for github.com/gliderlabs/logspout to write to Logstash TCP. Supports

  • multi-line log grouping
  • udacity metadata

Log lines identified as JSON preserve the app-specific fields when shipped to Logstash.

Follow the instructions in https://github.com/gliderlabs/logspout/tree/master/custom on how to build your own Logspout container with custom modules. Basically just copy the contents of the custom folder and include:

import (
  _ "github.com/udacity/logspout-logstash"
  _ "github.com/gliderlabs/logspout/transports/udp"
)

in modules.go.

Use by setting ROUTE_URIS=logstash://host:port to the Logstash host and port for TCP.

In your logstash config, set the input codec to json e.g:

input {
  tcp {
    port => 5000
    codec => json
  }
}

Developing

### See Makefile
### All build artifacts have make-style dependencies defined

# install build dependencies
make deps

# test
make test

# view coverage report in your browser
make view-coverage

# submit a coveralls report
# must configure COVERALLS_TOKEN env var, should be run from CI only
make coveralls

logspout-logstash's People

Contributors

daniilyar avatar pmbauer avatar

Watchers

 avatar  avatar

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.