Back

Custom logging in self-hosted appwrite

  • 0
  • Self Hosted
Vu "Anthony"
18 Jun, 2024, 08:49

Hi all, I wish to send all logs from my appwrite server in production to my self hosted logging server (Grafana Loki to be specific). In appwrite environmental variables documentation, _APP_LOGGING_PROVIDER doesn't support grafana loki, if I wanna use grafana loki for this, how can I achieve it ?

Well actually, I can also run a promtail container in the machine that hosts appwrite docker containers and ship all docker logs to Grafana Loki via its endpoint!

TL;DR
Developers want to send appwrite server logs to Grafana Loki, but the _APP_LOGGING_PROVIDER environmental variable doesn't support it. Solution: Run a Promtail container on the host machine that hosts appwrite docker containers to ship the logs to Grafana Loki.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more