From a265e29df724f5a7cc399bf9700eb7399588a73c Mon Sep 17 00:00:00 2001 From: "tomasz.kowalczewski" Date: Mon, 19 Apr 2021 17:18:30 +0200 Subject: [PATCH] Added note about which HTTP API/URL Tjahzi calls when configured with host/port. --- log4j2-appender/README.md | 5 +++++ logback-appender/README.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/log4j2-appender/README.md b/log4j2-appender/README.md index 3fc6002..c815aa2 100644 --- a/log4j2-appender/README.md +++ b/log4j2-appender/README.md @@ -50,6 +50,11 @@ appender seemed like a good first. ``` +### Note on Loki HTTP endpoint and host/port configuration + +Tjahzi sends `POST` requests to `/loki/api/v1/push` HTTP endpoint. Specifying e.g. `loki.mydomain.com3100` +will configure the appender to call to URL: `http://loki.mydomain.com:3100/loki/api/v1/push`. + ## Advanced configuration This example sets up a root logger with a Loki appender. Note that `pl.tkowalcz.tjahzi.log4j2` is added to `packages` attribute diff --git a/logback-appender/README.md b/logback-appender/README.md index 37b48dd..7c14517 100644 --- a/logback-appender/README.md +++ b/logback-appender/README.md @@ -51,6 +51,11 @@ On top of the `Core` component that sends logs to Loki this project gives you Lo ``` +### Note on Loki HTTP endpoint and host/port configuration + +Tjahzi sends `POST` requests to `/loki/api/v1/push` HTTP endpoint. Specifying e.g. `loki.mydomain.com3100` +will configure the appender to call to URL: `http://loki.mydomain.com:3100/loki/api/v1/push`. + ## Custom pattern layout and decreasing allocations Tjahzi provides its own pattern layout class `ch.qos.logback.core.pattern.EfficientPatternLayout`. It is based on