https://github.com/arsham/logpipe
Redirect your log entries to ElasticSearch, files, etc.
https://github.com/arsham/logpipe
elasticsearch golang logging
Last synced: 3 months ago
JSON representation
Redirect your log entries to ElasticSearch, files, etc.
- Host: GitHub
- URL: https://github.com/arsham/logpipe
- Owner: arsham
- License: apache-2.0
- Archived: true
- Created: 2017-10-08T10:04:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-13T19:19:13.000Z (almost 7 years ago)
- Last Synced: 2024-10-01T15:43:41.015Z (7 months ago)
- Topics: elasticsearch, golang, logging
- Language: Go
- Size: 85 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Logpipe
[](https://opensource.org/licenses/Apache-2.0)
[](http://godoc.org/github.com/arsham/logpipe)
[](https://travis-ci.org/arsham/logpipe)
[](https://codecov.io/gh/arsham/logpipe)
[](https://goreportcard.com/report/github.com/arsham/logpipe)
[](https://www.codacy.com/app/arsham/logpipe?utm_source=github.com&utm_medium=referral&utm_content=arsham/logpipe&utm_campaign=Badge_Grade)Logpipe can redirect your application's `logs` to a generic logfile, or to [ElasticSearch][elasticsearch] for aggregate and view with [kibana][kibana]. It can receive the logs in `JSON` format or plain line.
1. [Features](#features)
* [Upcoming Features](#upcoming-features)
2. [Installation](#installation)
3. [LICENSE](#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][glide] installed. Simply do:
```bash
go get github.com/arsham/logpipe
```You also need elasticsearch and kibana, here is a couple of docker images you can start with:
```bash
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](./LICENSE) file.
`Enjoy!`
[glide]: https://github.com/Masterminds/glide
[elasticsearch]: https://github.com/elastic/elasticsearch
[kibana]: https://github.com/elastic/kibana