You are on the right track. I had only read about it in a book of flikr
architecture by Cal Henderson.

 It's pretty easy as i gather from
http://www.cyberciti.biz/faq/how-do-i-rotate-log-files/

The default configuration file is /etc/logrotate.conf:
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}

2015-03-16 22:15 GMT+05:30 'Alan Holden' via Open BlueDragon <
[email protected]>:

>  Thanks @Nitish;
>
> Are you saying:
> That these log files >should< be rotating already? Something might be
> broken or misconfigured here?
> Or
> That I should apply an external log rotation solution myself?
>
> I'm good either way, I just wanted to make sure I understood your sentence
> below.
>
> Any recommendations out there - for Ubuntu on AWS? Logrotate? Tomcat's own
> Java utility?
>
> I would have preferred to bundle a CFML object right into the package
> itself - but I guess that's not workable.
>
> Al
>
>
> On 3/16/2015 9:12 AM, nitish pandey wrote:
>
> There are rotated family of tools ....apache and mysql admins uses it all
> the time.
>
> 2015-03-16 21:36 GMT+05:30 'Alan Holden' via Open BlueDragon <
> [email protected]>:
>
>> Bummer. That seems to complicate any attempt at log maintenance via CFML.
>> Is there a way I could invoke the [make_new_file_get_handle] object(s)
>> directly while it's running?
>>
>> Al
>>
>>
>> On 3/16/2015 5:32 AM, Alan Williamson wrote:
>>
>>> you need to restart the engine.  it has a handle to the open file.
>>>
>>> On 15/03/2015 23:25, 'Alan Holden' via Open BlueDragon wrote:
>>>
>>>> The log file WEB-INF/bluedragon/work/cfmail/mail.log was up to 11MB (it
>>>> logs every send)
>>>>
>>>> So I renamed it to mail_20150315.bak
>>>>
>>>> I assumed that OpenBD would automatically create a new mail.log file,
>>>> but it hasn't yet.
>>>>
>>>> I've even had it fire off 2 or 3 emails for me. Nothing. So I created
>>>> one myself, and gave it to tomcat6 as 777. It remains at zero bytes.
>>>>
>>>> Am I missing something? Do I have to cycle the whole container just to
>>>> get a new log file??
>>>>
>>>> Al
>>>>
>>>>
>>>
>> --
>> --
>> online documentation: http://openbd.org/manual/
>> http://groups.google.com/group/openbd?hl=en
>>
>> --- You received this message because you are subscribed to the Google
>> Groups "Open BlueDragon" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>  -Nitish
> "Imagination is more powerful than Knowledge"
>  --
> --
> online documentation: http://openbd.org/manual/
> http://groups.google.com/group/openbd?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Open BlueDragon" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
>
>  --
> --
> online documentation: http://openbd.org/manual/
> http://groups.google.com/group/openbd?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Open BlueDragon" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
-Nitish
"Imagination is more powerful than Knowledge"

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to