From ce127acf84d5c36270d942da9611f851c43d87f5 Mon Sep 17 00:00:00 2001 From: Brian Candler Date: Tue, 9 Jun 2020 20:55:07 +0100 Subject: [PATCH] Docs: Document the front-end proxy path for live log tailing with Loki (#25440) --- docs/sources/features/datasources/loki.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/sources/features/datasources/loki.md b/docs/sources/features/datasources/loki.md index c8176a63ad5..b2c8a759ed3 100755 --- a/docs/sources/features/datasources/loki.md +++ b/docs/sources/features/datasources/loki.md @@ -129,8 +129,10 @@ The following filter types are currently supported: Loki supports Live tailing which displays logs in real-time. This feature is supported in [Explore]({{< relref "../explore/#loki-specific-features" >}}). -Note that Live Tailing relies on two Websocket connections: one between the browser and the Grafana server, and another between the Grafana server and the Loki server. If you run any reverse proxies, please configure them accordingly. - +Note that Live Tailing relies on two Websocket connections: one between the browser and the Grafana server, and another between the Grafana server and the Loki server. If you run any reverse proxies, please configure them accordingly. The following example for Apache2 can be used for proxying between the browser and the Grafana server: +``` +ProxyPassMatch "^/(api/datasources/proxy/\d+/loki/api/v1/tail)" "ws://127.0.0.1:3000/$1" +``` > Note: This feature is only available in Grafana v6.3+