This is a Windows implementation of the logrotate utility found in Linux platforms. The goal is to use the same command line parameters and files as the Linux version.

You can help support my efforts by buying me a coffee!
https://buymeacoffee.com/kenasalter


If you are going to give a negative rating, please take a little extra time and explain why. I want to improve the program as much as possible, but I need feedback. Thank you!

Source code is available on GitHub:

https://github.com/plecos/logrotatewin

Available on Chocolately:

https://community.chocolatey.org/packages/LogRotate/

And available on Chef Supermarket:

https://supermarket.chef.io/cookbooks/windows_logrotate

Features

  • Feature compatibility with the linux logrotate utility
  • Additional features for Windows (sending email notifications)

Project Samples

Project Activity

See All Activity >

Categories

Log Rotation

License

GNU General Public License version 3.0 (GPLv3)

Follow LogRotateWin

LogRotateWin Web Site

Other Useful Business Software
Paessler - Monitor Your Whole Network in Minutes Icon
Paessler - Monitor Your Whole Network in Minutes

Auto-discovery finds your devices and deploys pre-configured sensors instantly. No project plan required, just visibility from day one.

Waiting weeks for a monitoring rollout isn't an option when infrastructure doesn't stop running. PRTG's auto-discovery scans your network and suggests from over 200 pre-configured sensor types, so you're watching servers, applications and devices within minutes, not after a multi-week deployment. Enterprise-strength monitoring, without the enterprise complexity. Start your free trial today.
Start Free 30-Day Trial
Rate This Project
Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
★
2
1
0
1
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5

User Reviews

  • 5 out of 5 stars
    I've often used logrotate on Linux so was really pleased to find a Windows version. Configuring it was just a case of copying the sample in the documentation and replacing the placeholders with info about my program (a service running SimpleDLNA by Nils Maier). I scheduled a task to run daily and the log rotates as expected. It's nothing fancy but it does exactly what it's supposed to do with no fuss.
  • 4 out of 5 stars
    Its serving my purpose of rotating Nginx logs on my windows servers, so thx.
  • 2 out of 5 stars
    Works on one computer, not on another. Both running Win7 prof. 64bit. Using the following config file: compress C:\sms.log { rotate 5 daily } I get: logrotate: Verbose option set to true logrotate: c:\Program Files (x86)\Logrotate\Content\logrotate.conf Adding to config files to process logrotate: Parsing configuraiton file c:\Program Files (x86)\Logrotate\Content\logrotate.conf logrotate: Processing new section logrotate: Processing C:\sms.log logrotate: Rotating file C:\sms.log logrotate: Exception: Input string was not in a correct format. logrotate: StackTrace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parse Decimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at logrotate.Program.AgeOutRotatedFiles(logrotateconf lrc, FileInfo fi, String rotate_path) at logrotate.Program.RotateFile(logrotateconf lrc, FileInfo fi) at logrotate.Program.Main(String[] args)
  • 5 out of 5 stars
    How can I set the size,Don't take effect size 10M
Read more reviews >

Additional Project Details

Operating Systems

Windows, Windows Server

Languages

English, Spanish

Intended Audience

Advanced End Users, System Administrators

User Interface

Command-line, Console/Terminal

Programming Language

C#

Related Categories

C# Log Rotation Software

Registered

2012-10-23