Re: running newsyslog fiveminly

2011-09-07 Thread Eugene Grosbein
01.08.2011 00:31, Jeremy Chadwick пишет: On Sun, Jul 31, 2011 at 11:51:40PM +0700, Eugene Grosbein wrote: Hi! Suppose, there is a machine which writes two kinds of log files through syslogd: quickly-growing that need to be rotated based on their size (hourly is too seldom) and other that

Re: running newsyslog fiveminly

2011-09-07 Thread Jeremy Chadwick
On Wed, Sep 07, 2011 at 03:45:34PM +0700, Eugene Grosbein wrote: 01.08.2011 00:31, Jeremy Chadwick ?: On Sun, Jul 31, 2011 at 11:51:40PM +0700, Eugene Grosbein wrote: Hi! Suppose, there is a machine which writes two kinds of log files through syslogd: quickly-growing that need to

Re: running newsyslog fiveminly

2011-09-07 Thread Eugene Grosbein
07.09.2011 17:08, Jeremy Chadwick writes: After reading newsyslog code, now it's obvious it just ignores minutes and seconds while making decision if a file should be rotated. It looks at hours only. That's sad. I imagine this design limitation is due to the fact that newsyslog is called

Re: running newsyslog fiveminly

2011-08-01 Thread Jason Hellenthal
On Mon, Aug 01, 2011 at 11:20:35AM +0700, Eugene Grosbein wrote: 01.08.2011 09:39, Jason Hellenthal ?: What line of the newsyslog.conf file is your line inserted and can you move that to a higher line number. FIFO I don't get why position of line in newsyslog.conf can have any

Re: running newsyslog fiveminly

2011-08-01 Thread Jason Hellenthal
On Mon, Aug 01, 2011 at 11:20:35AM +0700, Eugene Grosbein wrote: 01.08.2011 09:39, Jason Hellenthal ?: What line of the newsyslog.conf file is your line inserted and can you move that to a higher line number. FIFO I don't get why position of line in newsyslog.conf can have any

running newsyslog fiveminly

2011-07-31 Thread Eugene Grosbein
Hi! Suppose, there is a machine which writes two kinds of log files through syslogd: quickly-growing that need to be rotated based on their size (hourly is too seldom) and other that should be rotated once a day, at midnight only. For first kind of logs we have to run newsyslog once every 5

Re: running newsyslog fiveminly

2011-07-31 Thread Eugene Grosbein
31.07.2011 23:57, Freddie Cash пишет: Simplest solution is to have two separate config files for newsyslog My question is about possibly broken newsyslog, not how about real task, it is described for clarification only. Eugene Grosbein ___

Re: running newsyslog fiveminly

2011-07-31 Thread Freddie Cash
Simplest solution is to have two separate config files for newsyslog, and to edit /etc/crontab to point it at the two separate configs. One job runs every 5 mins, the other runs normally. I do this with three separate config files for different sets of logs that need to be rotated into different

Re: running newsyslog fiveminly

2011-07-31 Thread Jeremy Chadwick
On Sun, Jul 31, 2011 at 11:51:40PM +0700, Eugene Grosbein wrote: Hi! Suppose, there is a machine which writes two kinds of log files through syslogd: quickly-growing that need to be rotated based on their size (hourly is too seldom) and other that should be rotated once a day, at

Re: running newsyslog fiveminly

2011-07-31 Thread Eugene Grosbein
01.08.2011 00:31, Jeremy Chadwick writes: For second kind of logs we have lines in newsyslog.conf such as following: /var/log/mpd.log 640 16 * @T JC This must ensure that /var/log/mpd.log is rotated and compressed at midnigt only. Note, that compressing the file takes 8 minutes.

Re: running newsyslog fiveminly

2011-07-31 Thread Eugene Grosbein
01.08.2011 09:39, Jason Hellenthal пишет: What line of the newsyslog.conf file is your line inserted and can you move that to a higher line number. FIFO I don't get why position of line in newsyslog.conf can have any meaning. Eugene Grosbein ___