Skip to content
LUDA · 學思辨行

LUDA · 學思辨行

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

  • About

Tag: Docker

How one page filters Docker logs and Loki

October 3, 2026By HoHo Zhao

Short answer: The page sends one request, a time window or a line count, and lets the backend that holds the logs apply it. Docker‘s logs API and Loki‘s query_range both answer with a list of lines. Any further filter selects from that list. It does not start another…

Docker, Homelab, Logging, LokiDocker, LogQL, LokiLeave a comment

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.