Results 1 to 5 of 5

Thread: log rotation

Hybrid View

  1. #1

    log rotation

    Hi,

    Is there is any possible way to rotate apache log files base on the log file size, I want to rotate the log file once it reaches 100MB.

    If I can rotate the log file then how can I do it?

  2. #2
    Administrator Advisor peter's Avatar
    Join Date
    Apr 2004
    Posts
    882
    You can use either the "minsize" or "size" options in the logrotate conf file. Check the logrotate man pages for details.

  3. #3
    Thanks, I will search and make a try. If possible can you post the changes which have to be made in the conf file?

  4. #4
    Quote Originally Posted by peter View Post
    You can use either the "minsize" or "size" options in the logrotate conf file. Check the logrotate man pages for details.
    Where can I check that logrotate man pages? I've been searching also with that. I can't find answers.

  5. #5
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    In a terminal type: man logrotate
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •