From c300a636d6bf216f9d1f75c14c97a812053886e1 Mon Sep 17 00:00:00 2001 From: Artem Navoiev Date: Thu, 8 Feb 2024 07:06:31 -0800 Subject: [PATCH] docs: change ndjson links to https://jsonlines.org/ as original one was hacked (#5782) Signed-off-by: Artem Navoiev --- README.md | 2 +- docs/README.md | 2 +- docs/Single-server-VictoriaMetrics.md | 2 +- docs/VictoriaLogs/data-ingestion/README.md | 4 ++-- docs/VictoriaLogs/querying/README.md | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 63f24eafc..bb82cac63 100644 --- a/README.md +++ b/README.md @@ -1538,7 +1538,7 @@ Set HTTP request header `Content-Encoding: gzip` when sending gzip-compressed da VictoriaMetrics accepts data in JSON line format at [/api/v1/import](#how-to-import-data-in-json-line-format) and exports data in this format at [/api/v1/export](#how-to-export-data-in-json-line-format). -The format follows [JSON streaming concept](http://ndjson.org/), e.g. each line contains JSON object with metrics data in the following format: +The format follows [JSON streaming concept](https://jsonlines.org/), e.g. each line contains JSON object with metrics data in the following format: ```json { diff --git a/docs/README.md b/docs/README.md index 4c5cabd79..4a1107f64 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1541,7 +1541,7 @@ Set HTTP request header `Content-Encoding: gzip` when sending gzip-compressed da VictoriaMetrics accepts data in JSON line format at [/api/v1/import](#how-to-import-data-in-json-line-format) and exports data in this format at [/api/v1/export](#how-to-export-data-in-json-line-format). -The format follows [JSON streaming concept](http://ndjson.org/), e.g. each line contains JSON object with metrics data in the following format: +The format follows [JSON streaming concept](https://jsonlines.org/), e.g. each line contains JSON object with metrics data in the following format: ```json { diff --git a/docs/Single-server-VictoriaMetrics.md b/docs/Single-server-VictoriaMetrics.md index dcca89eff..3a912b113 100644 --- a/docs/Single-server-VictoriaMetrics.md +++ b/docs/Single-server-VictoriaMetrics.md @@ -1549,7 +1549,7 @@ Set HTTP request header `Content-Encoding: gzip` when sending gzip-compressed da VictoriaMetrics accepts data in JSON line format at [/api/v1/import](#how-to-import-data-in-json-line-format) and exports data in this format at [/api/v1/export](#how-to-export-data-in-json-line-format). -The format follows [JSON streaming concept](http://ndjson.org/), e.g. each line contains JSON object with metrics data in the following format: +The format follows [JSON streaming concept](https://jsonlines.org/), e.g. each line contains JSON object with metrics data in the following format: ```json { diff --git a/docs/VictoriaLogs/data-ingestion/README.md b/docs/VictoriaLogs/data-ingestion/README.md index bd8756ec3..fcab0a98c 100644 --- a/docs/VictoriaLogs/data-ingestion/README.md +++ b/docs/VictoriaLogs/data-ingestion/README.md @@ -35,7 +35,7 @@ See also: VictoriaLogs supports the following data ingestion HTTP APIs: - Elasticsearch bulk API. See [these docs](#elasticsearch-bulk-api). -- JSON stream API aka [ndjson](http://ndjson.org/). See [these docs](#json-stream-api). +- JSON stream API aka [ndjson](https://jsonlines.org/). See [these docs](#json-stream-api). - Loki JSON API. See [these docs](#loki-json-api). VictoriaLogs accepts optional [HTTP parameters](#http-parameters) at data ingestion HTTP APIs. @@ -94,7 +94,7 @@ See also: ### JSON stream API -VictoriaLogs accepts JSON line stream aka [ndjson](http://ndjson.org/) at `http://localhost:9428/insert/jsonline` endpoint. +VictoriaLogs accepts JSON line stream aka [ndjson](https://jsonlines.org/) at `http://localhost:9428/insert/jsonline` endpoint. The following command pushes multiple log lines to VictoriaLogs: diff --git a/docs/VictoriaLogs/querying/README.md b/docs/VictoriaLogs/querying/README.md index e8b299689..8d7e0f40f 100644 --- a/docs/VictoriaLogs/querying/README.md +++ b/docs/VictoriaLogs/querying/README.md @@ -44,7 +44,7 @@ See [LogsQL docs](https://docs.victoriametrics.com/VictoriaLogs/LogsQL.html) for The `query` arg must be properly encoded with [percent encoding](https://en.wikipedia.org/wiki/URL_encoding) when passing it to `curl` or similar tools. -The `/select/logsql/query` endpoint returns [a stream of JSON lines](http://ndjson.org/), +The `/select/logsql/query` endpoint returns [a stream of JSON lines](https://jsonlines.org/), where each line contains JSON-encoded log entry in the form `{field1="value1",...,fieldN="valueN"}`. Example response: