Why it happens
Applications crash mid-write. Binary protocols get routed to text log pipelines. Encoding mismatches produce garbage. A process dumps core and the output ends up in your logs. Sometimes it’s a misconfigured logger, sometimes it’s a bug, sometimes it’s just bad luck. These aren’t edge cases. In a large enough system, something is always emitting garbage somewhere.Example
- Before
- After
Recommended enforcement
Enforce at edge
Drop malformed logs before they reach your provider. No point paying to store garbage.