Some log lines are wrong in ways a strict format check misses: a stray tab where spaces belong, a line that ends in whitespace, a blank slot in a file that should have none, a fragment of a record split across two writes. Malformed Line Detector sweeps a log for those corrupt lines and reports each one with its line number and the exact reason it was flagged.
Layering a configurable format pattern over a set of content heuristics, it does what an on-call engineer does when a file looks suspicious: check the shape, then check the bytes. Every detector — pattern mismatch, control characters, unusual whitespace, trailing spaces, empty lines — can be switched on or off individually, and the report separates flagged lines from clean ones so the noise never hides the signal.
The healthy-line pattern is the shape check: a regular expression every well-formed line should match in full, such as the default timestamp-prefixed pattern ^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}.*$. Swap in your own pattern for any log format, or leave the field empty to skip shape checking and rely on content heuristics alone. Those heuristics look past the shape and into the bytes: a control character (an unprintable byte other than a tab or newline) usually means the file was corrupted in transit; a run of two or more spaces, or any tab, signals a malformed separator; trailing whitespace is invisible in most viewers but can break exact-match parsers; and a blank line is flagged as its own category, since a one-record-per-line file rarely has a legitimate reason to contain an empty one.