Skip to content

Conversation

@dehaansa
Copy link
Contributor

@dehaansa dehaansa commented Oct 9, 2025

PR Description

Previously, stage.luhn could not capture credit card numbers with dashes, for example, this PR adds support for those use cases.

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

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

@dehaansa dehaansa requested review from a team and clayton-cornell as code owners October 9, 2025 17:31
@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2025

The `source` field defines the source of data to search.
When `source` is missing or empty, the stage parses the log line itself, but it can also be used to parse a previously extracted value.

If you want the Luhn algorithm to identify numbers with delimiters, for example `4032-0325-1354-8443`, you can configure the `delimiters` field with the expected delimiters.
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to have an example for this

@dehaansa dehaansa requested a review from kalleep October 22, 2025 03:21
@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2025

💻 Deploy preview deleted (enhance stage.luhn to support numbers with delimiters).

@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label Oct 22, 2025
@dehaansa dehaansa enabled auto-merge (squash) October 22, 2025 19:03
@dehaansa dehaansa merged commit 3b195c8 into main Oct 22, 2025
43 checks passed
@dehaansa dehaansa deleted the loki-process-luhn-delimiters branch October 22, 2025 19:27
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.

3 participants