Start a project

Tool 414 of 425 · Logs

logrotate Config Builder

Writes a logrotate config for app logs, with sensible checks on the options you pick.

logrotate Config Builder

Your input

Result

Config

    01

    What it does

    Writes a logrotate config for app logs, with sensible checks on the options you pick.

    • Daily, weekly, monthly or size-based
    • compress and delaycompress
    • create or copytruncate
    • postrotate reload script

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Config file and test command, with a Copy and a Download button on every result.

    • logrotate
    • Linux
    • Logs

    Why it matters

    Logs that never rotate fill disks, usually at 3am. logrotate is on almost every Linux server but its options interact in ways that are easy to miss.

    The builder warns about conflicts such as copytruncate with create.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Build config. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    Where do I put it?

    In /etc/logrotate.d/APPNAME. Test with logrotate -d, which shows what would happen without changing anything.

    copytruncate or postrotate?

    Use postrotate to tell the app to reopen its logs. Use copytruncate only for apps that can't, as it can lose a few lines.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk