From 2e6f720d5d4a9f981973e8144889aeb92be4bc58 Mon Sep 17 00:00:00 2001 From: James Stewart Date: Wed, 5 May 2021 12:05:43 -0500 Subject: [PATCH] Fix document links for api push example --- 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 67e5f50464c1a..762fd179492e0 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: