Heya.
I’m still pretty new to the homelab scene, so the more detail you can add the better. I’d like to add some sort of log aggregation tool, something like Elastic, where I can go to look at logs from any of my systems that aren’t working, or just make sure I don’t miss any errors.
Pretty much everything I run is set up as a Proxmox LXC from Proxmox helper scripts, which most of the time means it’s running as a systemctl service. Sometimes they run in Alpine instead, and a few of my apps also run in Docker.
What’s a good app to aggregate logs from those sources? I’ve heard of Prometheus, Grafana and Loki but not sure if they do what I’m after, they seem pretty overwhelming and more focused on metrics, whereas I want to be able to search for and view logs. I’d appreciate if you also mention the basic steps to send the logs from each container to said app.
redlemace@lemmy.world 1 week ago
I use rsyslog directly into postgres. Grafana nativly can read from that. Super lightweight, super flexible. (I use 1 cpu and 2G mem and it works better than graylog which needed 4 cpu’s and 16 G ram)
slazer2au@lemmy.world 1 week ago
Do you have pointers on how to get that up an going?
redlemace@lemmy.world 1 week ago
this is the main pointer
On every device (but the central syslogserver or you create a loop that fills the drive in mere seconds)
/etc/rsyslog.d/99-centralsyslog.conf
then on the central syslog server 192.168.1.66
/etc/rsyslog.d/01-syslog_receiver.conf
and also
/etc/rsyslog.d/20-save2postgresql.conf
make sure you install postgres, the rsyslog-psql module and create the databases. Grafana can run on the same or any other server.