Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gocardless/logjam
a log shipping tool
https://github.com/gocardless/logjam
Last synced: about 2 months ago
JSON representation
a log shipping tool
- Host: GitHub
- URL: https://github.com/gocardless/logjam
- Owner: gocardless
- License: mit
- Archived: true
- Created: 2014-10-28T17:23:57.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-07T19:28:24.000Z (about 9 years ago)
- Last Synced: 2024-07-31T21:55:15.330Z (5 months ago)
- Language: Go
- Size: 153 KB
- Stars: 135
- Watchers: 107
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-docker - LogJam - Logjam is a log forwarder designed to listen on a local port, receive log entries over UDP, and forward these messages on to a log collection server (such as logstash) by [@gocardless](https://github.com/gocardless) (Container Operations / Monitoring)
- awesome-docker - LogJam - Logjam is a log forwarder designed to listen on a local port, receive log entries over UDP, and forward these messages on to a log collection server (such as logstash) by [@gocardless](https://github.com/gocardless) (Container Operations / Monitoring)
README
Logjam
------Logjam is a log forwarder designed to listen on a local port, receive log entries over UDP, and forward
these messages on to a log collection server (such as logstash).The motivation for logjam was a move to containerising our applications, and a need to get logs from these
applications out of the containers. We configure logjam to listen on the `docker0` (172.16.42.1) interface which is
accessible to applications running within docker.Logjam supports collecting logs using the following methods:
- UDP Socket
- FileLogjam will pipe all entries as a JSON object terminated with "\n" to a remote server.
Usage
-----### Config File
{
"bind": "127.0.0.1", // interface on host to bind (0.0.0.0 for all)
"port": 1470, // port to listen on locally
"server": "10.1.1.10:1470", // logstash server to forward to
"buffer": "/tmp/buffer.log", // file to use for on-disk buffer
"buffer_size": 1024, // entries to keep in memory buffer
"truncate": 3600 // clean out disk buffer every x seconds
}### Execution
$ logjam --config config.json
Pipeline
--------![logjam pipeline](https://i.imgur.com/4e5sowg.png)