Account Options

  1. Sign in
Google Groups Home
« Groups Home
Rotating production logs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tomek Piatek  
View profile  
 More options Feb 13 2007, 5:05 pm
From: "Tomek Piatek" <tomek.pia...@gmail.com>
Date: Wed, 14 Feb 2007 11:05:49 +1300
Local: Tues, Feb 13 2007 5:05 pm
Subject: Rotating production logs

Anyone have any experience rotating Rails production logs in the case where
there are multiple instances of the same app running under mongrel cluster
(UNIX)? How do you do it? Do you use a tool like "logrotate" or do you use
Rail's built in facility? Is there a best practice for this?

-t


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Koziarski  
View profile  
 More options Feb 13 2007, 5:20 pm
From: "Michael Koziarski" <koziar...@gmail.com>
Date: Wed, 14 Feb 2007 11:20:17 +1300
Local: Tues, Feb 13 2007 5:20 pm
Subject: Re: Rotating production logs
It's hardly best practise, but we have a small script that gets run @nightly.

NEW_LOGFILE=log/production.log.`date +%Y%m%d`

cd RAILS_ROOT
cp log/production.log $NEW_LOGFILE
cat /dev/null > log/production.log
/usr/bin/pl_analyze log/production.log.`date +%Y%m%d` -e mich...@koziarski.com
gzip $NEW_LOGFILE

An easier option (if you can) is using the robot-coops sysloglogger,
which means you can use all the standard syslog configuration options
for log rotation

On 2/14/07, Tomek Piatek <tomek.pia...@gmail.com> wrote:

> Anyone have any experience rotating Rails production logs in the case where
> there are multiple instances of the same app running under mongrel cluster
> (UNIX)? How do you do it? Do you use a tool like "logrotate" or do you use
> Rail's built in facility? Is there a best practice for this?

> -t

--
Cheers

Koz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nik Wakelin  
View profile  
 More options Feb 13 2007, 5:22 pm
From: "Nik Wakelin" <munkywre...@gmail.com>
Date: Wed, 14 Feb 2007 11:22:02 +1300
Local: Tues, Feb 13 2007 5:22 pm
Subject: Re: Rotating production logs
Does anyone know of a good tutorial for that robot co-op syslogger, or
a basic explanation of it?

I investigated it for use in conjunction with pl_analyze, but I can't
figure out how to hook it in to Rails (+ Capistrano) properly.

On 2/14/07, Michael Koziarski <koziar...@gmail.com> wrote:

--
Nik Wakelin
(027) 424 5433
munkywre...@gmail.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Koziarski  
View profile  
 More options Feb 13 2007, 5:26 pm
From: "Michael Koziarski" <koziar...@gmail.com>
Date: Wed, 14 Feb 2007 11:26:31 +1300
Local: Tues, Feb 13 2007 5:26 pm
Subject: Re: Rotating production logs
On 2/14/07, Nik Wakelin <munkywre...@gmail.com> wrote:

> Does anyone know of a good tutorial for that robot co-op syslogger, or
> a basic explanation of it?

> I investigated it for use in conjunction with pl_analyze, but I can't
> figure out how to hook it in to Rails (+ Capistrano) properly.

Eric's documentation is somewhat lacking, and contains errors.
However geoff grosenbach has a good hack to let you work with
pl_analyze without sysloglogger

http://nubyonrails.com/articles/2007/01/03/a-hodel-3000-compliant-log...

We're using that at planhq, seems to work pretty well.

--
Cheers

Koz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nik Wakelin  
View profile  
 More options Feb 13 2007, 6:03 pm
From: "Nik Wakelin" <munkywre...@gmail.com>
Date: Wed, 14 Feb 2007 12:03:52 +1300
Local: Tues, Feb 13 2007 6:03 pm
Subject: Re: Rotating production logs
Excellent - and that -e flag on pl_analyze is extra cool.

Cheers Koz.

On 2/14/07, Michael Koziarski <koziar...@gmail.com> wrote:

--
Nik Wakelin
(027) 424 5433
munkywre...@gmail.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »