Log Patterns
The Patterns tab of a source shows the kinds of line it logs, with how many of each. Numbers, ids, hex strings and quoted text in a message are masked, so lines that differ only in those are one pattern:
2 min read
On this page2 sections
Payment 4812 failed for "ada" in 35ms → Payment <num> failed for <str> in <num>ms
Payment 77 failed for "bob" in 9ms → Payment <num> failed for <str> in <num>ms
Each pattern shows its count and error count in the chosen range (1 hour, 24 hours or 7 days), when it was last seen, and an example line.
Drop a pattern#
Drop (the button on a pattern's row) adds a drop rule for the pattern to the source's transform rules. Lines of that pattern are discarded before they are counted or stored, so they do not use your quota. The rule appears on the Transform rules page like any other, where you can move, narrow with a query, or remove it. Only team owners and admins can drop a pattern, and the rule counts against your plan's limit of rules per source.
A drop rule for a pattern drops every line with that template, whatever the numbers and names in it. If a pattern is mostly noise but sometimes matters, add a query to the rule instead (for example level:debug).
Good to know#
- Patterns are worked out when a line is stored, on the message as stored: a redaction rule has already run, so the pattern of
login [email protected]with an email rule islogin [email]. - Lines stored before patterns were introduced have no pattern and are not listed. There is no backfill.
- Only the first 1,024 bytes of a message are read, so two long messages that differ only after that are one pattern.
Still stuck?
Email us and we will help you get it working.