August 19, 2024
Last updated
Last updated
It's been a long since I've run , but hardly used any logging, thought of exploring logs which is easy to setup.
Logging in Caddyfile:
Reference:
To avoid repeating the same log block again, and we can use snippets instead.
Logging using Snippets in Caddyfile:
Reference:
Grafana Loki: A horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus.
Promtail: An agent that ships the contents of local logs to a private Loki instance, scraping logs and labeling them for efficient querying.
This setup will significantly improve my ability to monitor and analyze logs from various servers in a centralized and organized manner.
Today I explored and as part of my effort to streamline log access from my remote servers.