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
- Type or paste your input; the example shows the format.
- Press Build config. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- 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.