pub fn normalize_template(msg: &str) -> StringExpand description
Normalise a message into a template by replacing variable runs with placeholders.
Priority (highest first):
- JSON object/array — replace the whole value with
<json> - RFC 3164 timestamp prefix — replace leading
Mon DD HH:MM:SSwith<ts> - UUID (8-4-4-4-12 hex) →
<uuid> - IPv4 / IPv4:port →
<ip>/<ip>:<n> - Long hex run (≥ 8 chars) →
<hex> - Quoted string (single or double, ≤ 200 chars) →
<str> - Linux absolute path (
/…/…) →<path> - Numeric run →
<n> - Non-ASCII codepoints pass through intact.