Skip to content
LUDA · 學思辨行

LUDA · 學思辨行

Learn extensively, Understand deeply, Discern clearly, and Act resolutely.

  • About

Tag: Promtail

How Promtail reads the Docker API and pushes logs to Loki

October 3, 2026By HoHo Zhao

Short answer: Promtail does not open Docker’s log files. It connects to the local Docker socket, lists container ids, and calls the engine logs API with follow. It splits stdout from stderr, removes Docker’s timestamp prefix, and POSTs the lines to Loki at /loki/api/v1/push. This page assumes that push…

Docker, Homelab, LoggingDocker, Loki, PromtailLeave a comment

How Promtail ships container logs to Loki across an IPsec split tunnel

October 3, 2026By HoHo Zhao

Short answer: Do not open a remote Docker socket to read container stdout. Promtail on the remote host tails the local socket and pushes to Loki. If that host’s IPsec policy can reach only one virtual address, and Loki is bound to a different virtual address on the same…

Homelab, IPsec, LoggingDocker, IPsec, Loki, PromtailLeave a comment
  • Authelia
  • CSS
  • Docker
  • Grafana
  • Homelab
  • IPsec
  • LDAP
  • Logging
  • Loki
  • nginx
  • Prometheus
  • Search

Docker EAP-MSCHAPv2 FreeRADIUS Grafana gzip IKEv2 IPsec LogQL Loki OpenLDAP Promtail StrongSwan

© 2026 LUDA · 學思辨行. Powered by WordPress.