Skip to content

Commit f1f6263

Browse files
authored
Merge pull request #2040 from Starefossen/patch-1
Fix incorrect doc for default LineFormat for loki
2 parents f181b7c + 3f3377f commit f1f6263

File tree

2 files changed

+2
-2
lines changed
  • docs/configuration/plugins/outputs
  • pkg/sdk/logging/model/output

2 files changed

+2
-2
lines changed

docs/configuration/plugins/outputs/loki.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Set of labels to include with every Loki stream.
8989
9090
### line_format (string, optional) {#output config-line_format}
9191
92-
Format to use when flattening the record to a log line: json, key_value (default: key_value)
92+
Format to use when flattening the record to a log line: json, key_value (default: json)
9393
9494
Default: json
9595

pkg/sdk/logging/model/output/loki.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type LokiOutput struct {
7979
Labels Label `json:"labels,omitempty"`
8080
// Set of extra labels to include with every Loki stream.
8181
ExtraLabels map[string]string `json:"extra_labels,omitempty"`
82-
// Format to use when flattening the record to a log line: json, key_value (default: key_value)
82+
// Format to use when flattening the record to a log line: json, key_value (default: json)
8383
LineFormat string `json:"line_format,omitempty" plugin:"default:json"`
8484
// Extract kubernetes labels as loki labels (default: false)
8585
ExtractKubernetesLabels *bool `json:"extract_kubernetes_labels,omitempty"`

0 commit comments

Comments
 (0)