Time is the organising principle of every log, and most troubleshooting questions are asked in time-shaped units: what happened in that hour, on that day, in that week. Time-Based Log Segmenter reads the timestamp of every line and buckets the file into hour, day, or week segments, giving you a clean chronological stack you can page through, copy, or download one piece at a time instead of scrolling through one undifferentiated wall of text.
Each line’s timestamp is extracted with a configurable regular expression (default ISO-8601, adjustable for any other format your logs use). Segments are named after the start of their window — the hour, the calendar date, or the Monday of the ISO week — and appear in time order, earliest first. Day and hour boundaries are read directly from the digits of the timestamp text itself rather than through any timezone-sensitive date parsing, so a line stamped just before midnight lands in the correct day segment regardless of what timezone your browser happens to be running in. The same care applies to week segmentation: the Monday that starts each ISO week is computed from the calendar date alone, in UTC, so late-night and early-morning lines are never nudged into the wrong week by a local time zone offset.
Lines that carry no matching timestamp — blank lines, stack-trace continuations, or anything in an unexpected format — are kept in their own “unknown” segment rather than silently discarded, so every single line from the input is accounted for somewhere in the output. You can verify this yourself: the total lines scanned and the sum of lines across every rendered segment always match.