From f6dcd3f3a44fdb9dbba3e1e0a3881a8e655ba4e0 Mon Sep 17 00:00:00 2001 From: atxviking Date: Tue, 18 May 2021 06:44:33 -0500 Subject: [PATCH] Fix document links for api push example (#3690) --- docs/sources/api/_index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sources/api/_index.md b/docs/sources/api/_index.md index 67e5f50464..762fd17949 100644 --- a/docs/sources/api/_index.md +++ b/docs/sources/api/_index.md @@ -559,8 +559,8 @@ Response (streamed): `/loki/api/v1/push` is the endpoint used to send log entries to Loki. The default behavior is for the POST body to be a snappy-compressed protobuf message: -- [Protobuf definition](https://github.com/grafana/loki/tree/master/pkg/logproto/logproto.proto) -- [Go client library](https://github.com/grafana/loki/tree/master/pkg/promtail/client/client.go) +- [Protobuf definition](https://github.com/grafana/loki/blob/main/pkg/logproto/logproto.proto) +- [Go client library](https://github.com/grafana/loki/blob/main/clients/pkg/promtail/client/client.go) Alternatively, if the `Content-Type` header is set to `application/json`, a JSON post body can be sent in the following format: