From 0264a99f8587a0fc270644cccba62df8c09c7219 Mon Sep 17 00:00:00 2001 From: nickgrafana <169014307+nickgrafana@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:26:41 -0600 Subject: [PATCH] =?UTF-8?q?docs:=20Label=20filter=20expression:=20Change?= =?UTF-8?q?=20unit=20suffix=20suffix=20to=20proper=20case=20whe=E2=80=A6?= =?UTF-8?q?=20(#13344)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: J Stickler (cherry picked from commit 91a34868db61f2cf4299d618c2e48885ff0a705e) --- docs/sources/query/log_queries/_index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/sources/query/log_queries/_index.md b/docs/sources/query/log_queries/_index.md index 1e88402fe3bf2..562dd075c506e 100644 --- a/docs/sources/query/log_queries/_index.md +++ b/docs/sources/query/log_queries/_index.md @@ -225,7 +225,7 @@ We support multiple **value** types which are automatically inferred from the qu - **String** is double quoted or backticked such as `"200"` or \``us-central1`\`. - **[Duration](https://golang.org/pkg/time/#ParseDuration)** is a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - **Number** are floating-point number (64bits), such as`250`, `89.923`. -- **Bytes** is a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "42MB", "1.5Kib" or "20b". Valid bytes units are "b", "kib", "kb", "mib", "mb", "gib", "gb", "tib", "tb", "pib", "pb", "eib", "eb". +- **Bytes** is a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "42MB", "1.5KiB" or "20B". Valid bytes units are "B", "kB", "MB", "GB", "TB", "KB", "KiB", "MiB", "GiB", "TiB". String type work exactly like Prometheus label matchers use in [log stream selector](#log-stream-selector). This means you can use the same operations (`=`,`!=`,`=~`,`!~`). @@ -247,10 +247,10 @@ You can chain multiple predicates using `and` and `or` which respectively expres This means that all the following expressions are equivalent: ```logql -| duration >= 20ms or size == 20kb and method!~"2.." -| duration >= 20ms or size == 20kb | method!~"2.." -| duration >= 20ms or size == 20kb , method!~"2.." -| duration >= 20ms or size == 20kb method!~"2.." +| duration >= 20ms or size == 20KB and method!~"2.." +| duration >= 20ms or size == 20KB | method!~"2.." +| duration >= 20ms or size == 20KB , method!~"2.." +| duration >= 20ms or size == 20KB method!~"2.." ```