• 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 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
  • fabric-swatch
    I Finally Bought a New Couch!

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

Leave a Reply

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

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
  • Stewart Curry
  • Blacknight Blog
  • My Mastodon
  • Gordon Hudson

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 © 2026 · Magazine Pro on Genesis Framework · WordPress · Log in