Skip to content

Conversation

@timonegk
Copy link
Contributor

PR Description

After I added the regex field to the structured_metadata stage in #4629, this PR adds the field to logfmt and json as well. As pointed out by @bmundt6 in #2156 (comment), this is required to fully close #2156.

Which issue(s) this PR fixes

Continues the fix for #2156.

Notes to the Reviewer

In the documentation, I removed the section about the logfmt-parser preserving the type of booleans and numbers because these types are actually always converted to strings.

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated

@timonegk timonegk requested review from a team and clayton-cornell as code owners November 26, 2025 15:21
@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label Nov 26, 2025
Copy link
Contributor

@clayton-cornell clayton-cornell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really minor suggestion. Otherwise the docs look fine. Over to the dev team for code review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/docs Docs Squad label across all Grafana Labs repos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

loki.process --> stage.json, stage.logfmt - extract all label:value pairs without explicit expression

2 participants