• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Michele Neylon :: Pensieri

Michele Neylon :: Pensieri

Technology, Marketing, Domains, Thoughts

Apache Log Rotation With Cronolog

February 25, 2007 by Michele Neylon 7 Comments

As part of my ongoing efforts to make sites on this server run faster and cause me fewer headaches I’ve implemented Apache log rotation using Cronolog.
Apache2 does support log rotation, but Cronolog gives you more options, which is why I chose it.
On Ubuntu all you need to do is:
apt-get install cronolog
To see which version you have type:
cronolog -V
The version I have is 1.6.2, which was released 5 years ago! I guess that means “it just works”.
Unfortunately the documentation on the site isn’t as extensive as I would have liked, but adding a daily log rotation in Apache2 can be done by editing the log entry in the vhost config to read as follows:
CustomLog "|/usr/sbin/cronolog /pathtologs/logs/%Y/%m/%d/access.log" combined
This will create a subdirectory for each year, month and day. As the site I was concerned about, IrishBlogs.info, produces rather large log files I was more concerned about getting them down to a managable size. I am not worried about processing them at this juncture.
Hopefully this will help 🙂

Related Posts:

  • Video thumbnail for youtube video fr7oyjnt3bm
    Luke Combs' Version of Fast Car
  • Video thumbnail for youtube video sonqjkjtmaa
    Thriller was Released 40 years ago!
  • Video thumbnail for youtube video 564u39pjfui
    Thunderstruck Cover
  • Video thumbnail for youtube video 0c4v7fp5gc8
    Sinéad O'Connor Troy
  • Video thumbnail for youtube video zeqb6xbeuco
    Tracy Chapman Duet With Luke Combs at Grammys
  • Video thumbnail for youtube video c36pulqpody
    Gladiator - An Over the top Cover from the Royal Marines

Filed Under: Linux, Open Source, Techie :: Techno ::, Ubuntu

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight. Read More…

Reader Interactions

Comments

  1. Frank Michlick says

    February 26, 2007 at 2:41 am

    Now that we are talking logs, what do you use for stats. I am looking for something I can host myself without giving all of my data to someone else, and cheap 😉
    I like Webalizer and awstats, however neither one really provides usable stats across many different domains… Like an overview screen that shows all of my domains and then drill down options from there.
    Any ideas?
    Thanks,
    /Frank

  2. michele says

    February 26, 2007 at 7:37 am

    Frank
    Have you ever looked at Sawmill?
    Michele

  3. Apache says

    February 26, 2007 at 2:35 pm

    I’ve used cronolog in the past over other log-apps due to the ability of being able to use/create a formated dir structure for the logs and rotating logs on a date change vs. some timer countdown.
    It does have problems though. Its been a while since a new release and it has problems with Apache restart.

  4. Gokul.S.Kartha says

    March 8, 2007 at 4:10 am

    today i tried cronolog for rotating my catalina.out file,its looking good.Is there any patches available for pattern searching stuff?
    Reagrds,
    Gokul.S.Kartha
    Software Engineer
    DeviceDriven
    Technopark

  5. michele says

    March 8, 2007 at 9:15 am

    Gokul
    Cronolog is for rotating logs not analysing them
    Michele

  6. Andrew Ford says

    March 16, 2007 at 11:01 pm

    Michele: In what way is the cronolog documentation deficient? Let me know and I will try to address those deficiencies.
    Also a new version of cronolog is in the works (it will be out soon – I promise).

  7. michele says

    March 17, 2007 at 2:25 pm

    Andrew
    More examples of usage would be helpful. At the moment there’s very little on there 🙂
    Thanks for your comment and I look forward to the new version as soon as it’s available for Ubuntu
    Michele

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

dotblog founder

Mastodon

Archives

  • Bluesky
  • Instagram
  • Threads
  • Twitter

Pages

  • About Me
  • About This Site
  • Archives
  • Comments Policy
  • Contact Me
  • Newsletter
  • Privacy

Blogroll

  • Technology.ie Podcast
  • Gordon Hudson
  • Paul Savage – BlackDog SEO
  • Grandad
  • Blacknight Blog

Stalking Links

Subscribe to Michele Neylon :: Pensieri

Blogroll

  • Blacknight Blog
  • Damien Mulley
  • Gianni Ponzi
  • Gordon Hudson
  • Grandad
  • My Mastodon
  • Paul Savage – BlackDog SEO
  • Stewart Curry
  • Technology.ie Podcast
  • Tom Doyle

Sites

  • Business Travel Tips
  • Discount Coupon Codes
  • Domain News
  • Fat.ie – my diet blog
  • Film Posters
  • Film Reviews
  • Films
  • Free Desktop Wallpapers
  • Irish Blogger Discussion Forum
  • Irish Stamps
  • Movie Trailers and News
  • Paste.ie

Footer

Site hosted in Ireland by Blacknight - Content copyright Michele Neylon

Copyright © 2025 · Magazine Pro on Genesis Framework · WordPress · Log in