https://github.com/threefoldtech/logagg
Simple log aggregator that receive log streams over web socket then handle it as configured
https://github.com/threefoldtech/logagg
Last synced: about 1 month ago
JSON representation
Simple log aggregator that receive log streams over web socket then handle it as configured
- Host: GitHub
- URL: https://github.com/threefoldtech/logagg
- Owner: threefoldtech
- License: apache-2.0
- Created: 2022-04-21T10:44:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-16T14:57:18.000Z (about 1 year ago)
- Last Synced: 2024-04-16T18:29:49.751Z (about 1 year ago)
- Language: Rust
- Size: 35.2 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Logagg
This is a simple log aggregator service. The service can be ran by anyone to receive streamed logs from multiple sources (mainly VMs). [tailstream](https://github.com/threefoldtech/tailstream) is the tool which used in our VMs.
## Configuration
Configuration is passed via `--cfg` argument which accepts a `path` to a `yaml` file.The `yaml` file has the following structure.
```yaml
listen:
output:
- kind:
config: < i.e. /where/to/keep/thelogs/ for a *file* kind>
- kind: ...
config: ...
```## Types of received message
- text for not compressed message
- binary for gzip compressed message## Url form
send messages to the following url with this form
`ws:///logs/`
- `listen-address` is the one written into the `.yaml`.
- `name` is the name of the log file i.e. text file.## Usage
```
logagg --cfg /path/to/.yaml
```