Stream Logs to Loki

Overview

When trying to send logs to Loki, the log stream does not allow setting basic authentication parameters.

When trying to put them inline it also seems to not work:

Payload URL: https://244184:@logs-prod3.grafana.net/loki/api/v1/push

Loki uses basic authentication for incoming push.

This article explains why this is happening and details how to get it working.

Applies To

  • Loki
  • Stream Logs

Cause

For the time being, Auth0 does not provide the facility to stream logs to Loki.

Solution

There is a workaround to this problem. In order to push log streams to Loki, use the fluentd, which is a log routing system.

Stand up a fluentd http input source, and send the logs to Loki by using the Loki fluentd output plugin.