fancy let's you fanout rsyslog
to Loki and is meant to be executed by rsyslog
under
omprog
- Download fancy from releases or compile it from sources
- Make fancy executable. chmod +x fancy
- Move fancy to /opt. mv fancy /opt/
- 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:https://lokihost:3100")
- Make sure you have set the right Loki URL
- Restart
rsyslog
. systemctl restart rsyslog - Check logs under /var/log/syslog and /var/log/fancy.log
- Check example and build a fancy dashboard! Uh fancy :)