Skip to content

fix: emit valid logfmt key#3495

Merged
kalleep merged 2 commits intomainfrom
fix-log-keys
May 5, 2025
Merged

fix: emit valid logfmt key#3495
kalleep merged 2 commits intomainfrom
fix-log-keys

Conversation

@kalleep
Copy link
Contributor

@kalleep kalleep commented May 5, 2025

PR Description

Keys cannot contain spaces so alloy is emitting logs that is not valid logfmt when that logger is configured.

Which issue(s) this PR fixes

Fixes #3477

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@kalleep kalleep requested a review from a team as a code owner May 5, 2025 07:21
@kalleep kalleep enabled auto-merge (squash) May 5, 2025 07:34
@kalleep kalleep merged commit a8a309a into main May 5, 2025
40 checks passed
@kalleep kalleep deleted the fix-log-keys branch May 5, 2025 07:42
kalleep added a commit that referenced this pull request May 5, 2025
* Fix log keys to be valid for logfmt

* Add changelog
kalleep added a commit that referenced this pull request May 5, 2025
* fix: panic that happens when a target gets deleted when using decompression (#3475)

* Fix panic caused that can happen when when file is removed for
decompressor

* Change to start readLine start and stops updatePositions

* Add changelog

* Fix mimir.rules.kubernetes panic on non-leader debug info retrieval (#3451)

* Fix mimir.rules.kubernetes to only return eventProcessor state if it exists

* fix: deadlock in loki.source.file when target is removed (#3488)

* Fix deadlock that can happen when stopping reader tasks

Co-authored-by: William Dumont <william.dumont@grafana.com>

* fix: emit valid logfmt key (#3495)

* Fix log keys to be valid for logfmt

* Add changelog

* Fix streams limit error check so that metrics are correctly labeled as `ReasonStreamLimited` (#3466)

* fix: replace direct error string compare with isErrMaxStreamsLimitExceeded helper

* update CHANGELOG

* Make errMaxStreamsLimitExceeded an error type

---------

Co-authored-by: Théo Brigitte <theo.brigitte@gmail.com>
Co-authored-by: William Dumont <william.dumont@grafana.com>
Co-authored-by: Marat Khvostov <marathvostov@gmail.com>
marctc pushed a commit that referenced this pull request May 7, 2025
* Fix log keys to be valid for logfmt

* Add changelog
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alloy emits invalid logfmt with level = "debug"

2 participants