logpipe

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

README

Logpipe

License GoDoc Build Status Coverage Status Go Report Card

Logpipe can redirect your application's logs to a generic logfile, or to ElasticSearch for aggregate and view with kibana. It can receive the logs in JSON format or plain line.

  1. Features
  2. Installation
  3. LICENSE

Features

  • Very lightweight and fast.
  • Can receive from multiple inputs.
  • Buffers the recording and passes them to the destination in batch.
Upcoming Features
  • Tail log files.
  • Record to more repositories:
    • InfluxDB

Installation

I will provide a docker image soon, but for now it needs to be installed. You need golang >= 1.8 and glide installed. Simply do:

go get github.com/arsham/logpipe

You also need elasticsearch and kibana, here is a couple of docker images you can start with:

docker volume create logpipe
docker run -d --name logpipe --restart always --ulimit nofile=98304:98304 -v logpipe:/usr/share/elasticsearch/data -e ES_JAVA_OPTS='-Xms10G -Xmx10G' -e "xpack.security.enabled=false" -e "xpack.monitoring.enabled=true" -e "xpack.graph.enabled=true" -e "xpack.watcher.enabled=false" -p 9200:9200 -e "http.cors.enabled=true" -e 'http.cors.allow-origin=*' docker.elastic.co/elasticsearch/elasticsearch:5.6.2
docker run -d --name kibana --restart always -p 80:5601 --link logpipe:elasticsearch docker.elastic.co/kibana/kibana:5.6.2

LICENSE

Use of this source code is governed by the Apache 2.0 license. License that can be found in the LICENSE file.

Enjoy!

Documentation

Overview

Package Logpipe can redirect your application's `logs` to a generic logfile, or to ElasticSearch for aggregate and view with kibana.

Directories

Path Synopsis
Package internal contains some internal functionalities needed for logpipe.
Package internal contains some internal functionalities needed for logpipe.
config
Package config loads the configurations from a yaml file.
Package config loads the configurations from a yaml file.
handler
Package handler contains bootstrapping logic for the application, and all handlers for serving POST requests.
Package handler contains bootstrapping logic for the application, and all handlers for serving POST requests.
Package reader contains a series of readers that can understand how an entry can be written to a destination.
Package reader contains a series of readers that can understand how an entry can be written to a destination.
Package writer contains a series of writers that can write the log entries.
Package writer contains a series of writers that can write the log entries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL