fancy let's you fanout rsyslog to Loki (fork of https://github.com/negbie/fancy)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
James Mills 9980a7db1e
Update dependencies
1 month ago
example Change template and include RFC3339 time 3 years ago
logproto Version up 2 years ago
.gitignore Update dependencies 1 month ago
LICENSE Add license 3 years ago
README.md Change template and include RFC3339 time 3 years ago
go.mod Update dependencies 1 month ago
go.sum Update dependencies 1 month ago
logline.go Rename prom-tag to static-tag and use it for loki too 3 years ago
loki.go Version up 2 years ago
main.go Log error with raw message 2 years ago
parse.go Log error with raw message 2 years ago
parse_test.go Log error with raw message 2 years ago

README.md

fancy let's you fanout rsyslog to Loki and is meant to be executed by rsyslog under omprog

Setup

  1. Download fancy from 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
    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")
  1. Make sure you have set the right Loki URL
  2. Restart rsyslog. systemctl restart rsyslog
  3. Check logs under /var/log/syslog and /var/log/fancy.log
  4. Check example and build a fancy dashboard! Uh fancy :)

fancy_dashboard