On a production box, logrotate quietly turns one unstoppable log into a rolling stack of files: app.log holds the newest lines, app.log.1 the previous batch, app.log.2 the batch before that, and so on out to a configured keep count. Log Rotation Splitter reproduces exactly that layout in the browser, turning a large pasted log into a simulated rotated file set so you can study or reproduce the behavior without touching a server, writing a cron job, or waiting for a real rotation to happen.
Pick a rotation trigger — a maximum line count per chunk or a maximum size per chunk in kilobytes — and the tool walks your log from start to finish, cutting it into rotation-sized pieces. Every original line ends up in exactly one chunk: none are dropped, none are duplicated, and a line is never split across a chunk boundary, even in size mode where a single very long line can legitimately push a chunk slightly over the target. The newest chunk keeps the base file name, older chunks get numeric suffixes counting upward with age, and a Keep count drops everything older than your rotation window from the output, just like backup count in real logrotate configuration.
Every chunk in the result shows its own line count and byte size, and can be copied or downloaded individually under its rotated file name, or you can grab the whole set in one click. Because the tool works purely on the text you paste in, you can experiment freely with different rotation triggers and keep counts to see exactly how a given log would be sliced before committing to a real rotation policy on a server.