Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/negbie/fancy
fancy let's you fanout rsyslog to Loki
https://github.com/negbie/fancy
fancy grafana logs loki metrics omprog prometheus rsyslog syslog
Last synced: 24 days ago
JSON representation
fancy let's you fanout rsyslog to Loki
- Host: GitHub
- URL: https://github.com/negbie/fancy
- Owner: negbie
- License: apache-2.0
- Created: 2019-10-19T17:50:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T00:51:59.000Z (over 1 year ago)
- Last Synced: 2024-09-30T08:02:43.738Z (about 1 month ago)
- Topics: fancy, grafana, logs, loki, metrics, omprog, prometheus, rsyslog, syslog
- Language: Go
- Homepage:
- Size: 42 KB
- Stars: 33
- Watchers: 4
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**fancy** let's you fanout `rsyslog` to [Loki](https://github.com/grafana/loki) and is meant to be executed by `rsyslog` under
[omprog](http://www.rsyslog.com/doc/master/configuration/modules/omprog.html)## Setup
1. Download **fancy** from [releases](https://github.com/negbie/fancy/releases) or compile it from sources
2. Make **fancy** executable. chmod +x fancy
3. Move **fancy** to /opt. mv fancy /opt/
4. Edit and paste following under /etc/rsyslog.conf. vim /etc/rsyslog.conf```bash
module(load="omprog")$template fancy,"%timegenerated:::date-rfc3339% %syslogseverity% %hostname% %programname%%msg%\n"
action(type="omprog" name="fancy" template="fancy" output="/var/log/fancy.log" binary="/opt/fancy --loki-url http://lokihost:3100")
```
5. Make sure you have set the right Loki URL
6. Restart `rsyslog`. systemctl restart rsyslog
7. Check logs under /var/log/syslog and /var/log/fancy.log
8. Check [example](https://github.com/negbie/fancy/tree/master/example) and build a fancy dashboard! Uh fancy :)![fancy_dashboard](https://user-images.githubusercontent.com/20154956/67338148-cab70600-f528-11e9-97c3-5782e4714193.png)