From 58aa9a4cf2ab6af41d0bc288be3452cbdb3f0275 Mon Sep 17 00:00:00 2001 From: Sam Jewell <2903904+samjewell@users.noreply.github.com> Date: Tue, 30 Mar 2021 10:25:11 +0100 Subject: [PATCH] Remove key-value pair missing from logfmt output Also fix typo --- docs/sources/logql/_index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sources/logql/_index.md b/docs/sources/logql/_index.md index 4294bda4b867..8e265a8fe020 100644 --- a/docs/sources/logql/_index.md +++ b/docs/sources/logql/_index.md @@ -262,7 +262,7 @@ The **logfmt** parser can be added using the `| logfmt` and will extract all key For example the following log line: ```logfmt -at=info method=GET path=/ host=grafana.net fwd="124.133.124.161" connect=4ms service=8ms status=200 +at=info method=GET path=/ host=grafana.net fwd="124.133.124.161" service=8ms status=200 ``` will get those labels extracted: @@ -393,7 +393,7 @@ You can use double quoted string for the template or backticks `` `{{.label_name `line_format` also supports `math` functions. Example: -If we have fllowing labels `ip=1.1.1.1`, `status=200` and `duration=3000`(ms). We can divide the duration by `1000` to get the value in seconds. +If we have following labels `ip=1.1.1.1`, `status=200` and `duration=3000`(ms). We can divide the duration by `1000` to get the value in seconds. ```logql {container="frontend"} | logfmt | line_format "{{.ip}} {{.status}} {{div .duration 1000}}"