Skip to content

Fix incorrect doc for default LineFormat for loki #2040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/configuration/plugins/outputs/loki.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Set of labels to include with every Loki stream.

### line_format (string, optional) {#output config-line_format}

Format to use when flattening the record to a log line: json, key_value (default: key_value)
Format to use when flattening the record to a log line: json, key_value (default: json)

Default: json

Expand Down
2 changes: 1 addition & 1 deletion pkg/sdk/logging/model/output/loki.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type LokiOutput struct {
Labels Label `json:"labels,omitempty"`
// Set of extra labels to include with every Loki stream.
ExtraLabels map[string]string `json:"extra_labels,omitempty"`
// Format to use when flattening the record to a log line: json, key_value (default: key_value)
// Format to use when flattening the record to a log line: json, key_value (default: json)
LineFormat string `json:"line_format,omitempty" plugin:"default:json"`
// Extract kubernetes labels as loki labels (default: false)
ExtractKubernetesLabels *bool `json:"extract_kubernetes_labels,omitempty"`
Expand Down