From eecedff435a28a516a5c01156d5ea4fdc5fbb03c Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Tue, 15 Mar 2022 06:34:23 -0700 Subject: [PATCH] Add unpack to Loki Log Browser (#44623). (#46573) (#46583) (cherry picked from commit 5cf090662280fb37b8c2a7414d782da97d7c5b86) Co-authored-by: Alexander Kubyshkin --- public/app/plugins/datasource/loki/syntax.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/app/plugins/datasource/loki/syntax.ts b/public/app/plugins/datasource/loki/syntax.ts index cac467b365e..559d46b1523 100644 --- a/public/app/plugins/datasource/loki/syntax.ts +++ b/public/app/plugins/datasource/loki/syntax.ts @@ -81,6 +81,13 @@ export const PIPE_OPERATORS: CompletionItem[] = [ documentation: 'Take labels and use the values as sample data for metric aggregations. Only available in Loki 2.0+.', }, + { + label: 'unpack', + insertText: 'unpack', + detail: 'unpack identifier', + documentation: + 'Parses a JSON log line, unpacking all embedded labels in the pack stage. A special property "_entry" will also be used to replace the original log line. Only available in Loki 2.0+.', + }, { label: 'label_format', insertText: 'label_format',