Rotating logs ?

Hi !

Does anyone know if a package like Logrotate exists (preferably binary
package) for QNX 4.25 ?
I have an application that generates rather large log files and I would like
to automatically downsize and gzip them…

Regards,
Joachim Holst

Hi Joachim,

Do you want a appliacation that will keep logs to
a certain size? meaning chop off the data after a
it has reached a certain length? If so then you can
use the ‘tail’ utility to keep it to a certain
size, then using a cron job you can gzip it when you
schedual it.

Erick.



Joachim Holst <joachim.holst@obducat.com> wrote:

Hi !

Does anyone know if a package like Logrotate exists (preferably binary
package) for QNX 4.25 ?
I have an application that generates rather large log files and I would like
to automatically downsize and gzip them…

Regards,
Joachim Holst

Hardware Support Account wrote:

Hi Joachim,

Do you want a appliacation that will keep logs to
a certain size? Meaning chop off the data after a
it has reached a certain length? If so then you can
use the ‘tail’ utility to keep it to a certain
size, then using a cron job you can gzip it when you
schedual it.

Not quite something like this.
I want a bit more functionality. Ability to send a mail
to a specified user when log processing is complete, keeping
a backlog of N days/weeks/months, processing different log files
at different times (weekly,daily, mothly) etc.

/Jocke!

Hmmm, off the top of my head, I can’t think of anything. So you
might have to customize something using scripts and/or a few
small apps. Perhaps someone else might have an idea.

Erick.


Joachim Holst <joachim.holst@obducat.com> wrote:


Hardware Support Account wrote:

Hi Joachim,

Do you want a appliacation that will keep logs to
a certain size? Meaning chop off the data after a
it has reached a certain length? If so then you can
use the ‘tail’ utility to keep it to a certain
size, then using a cron job you can gzip it when you
schedual it.

Not quite something like this.
I want a bit more functionality. Ability to send a mail
to a specified user when log processing is complete, keeping
a backlog of N days/weeks/months, processing different log files
at different times (weekly,daily, mothly) etc.

/Jocke!

Hardware Support Account wrote:

Hmmm, off the top of my head, I can’t think of anything. So you
might have to customize something using scripts and/or a few
small apps. Perhaps someone else might have an idea.

OK !

Thank’s for the help though.
Perhaps I’ll get the time to sit down and port the logrotate package to QNX
4.25 for the good of all mankind… Today it’s based on GNU C/C++ libs. Should
compile quite nicely in Neutrino but that doesn’t help me for the moment :frowning:

Regards,
Joachim Holst

Erick.

Joachim Holst <> joachim.holst@obducat.com> > wrote:

Hardware Support Account wrote:

Hi Joachim,

Do you want a appliacation that will keep logs to
a certain size? Meaning chop off the data after a
it has reached a certain length? If so then you can
use the ‘tail’ utility to keep it to a certain
size, then using a cron job you can gzip it when you
schedual it.

Not quite something like this.
I want a bit more functionality. Ability to send a mail
to a specified user when log processing is complete, keeping
a backlog of N days/weeks/months, processing different log files
at different times (weekly,daily, mothly) etc.

/Jocke!