Re: Peculiar results with multilog

2001-03-05 Thread Gerrit Pape

On Sat, Mar 03, 2001 at 11:59:39PM -0800, Dan Peterson wrote:
   John R Levine [EMAIL PROTECTED] wrote:
  multilog t s400 ./logfiles '-*' '+*status:*' =logfiles/status
  
  The status lines logged from tcpserver look like this:
  
  @40003aa13cff07eb6d7c tcpserver: status: 2/40
 
  Any suggestions what's wrong?
 
 '*' matches anything except the character that follows it. Since "tcpserver"
 has an 's' in it, the first '*' stops at the 's' in "tcpserver." Since it
 doesn't see "tatus:*" after that, the line is not logged. Try adding some
 spaces:
 
 '-*' '+* status: *'

Note that also the timestamp could have the 's'. '+* *...' is mandatory when
using multilog with timestamps.

Gerrit.

-- 
[EMAIL PROTECTED]
innominate AG
 the linux architects
tel: +49.30.308806-0  fax: -77  http://www.innominate.com



Peculiar results with multilog

2001-03-03 Thread John R Levine

I just switched my qmail setup (one of them at least) to daemontools,
qmail, two tcpservers for smtp, one for qmqp. It works great, execpt for
one teensy thing.  I have the same run command for all the log files:

exec setuidgid qmaill \
multilog t s400 ./logfiles '-*' '+*status:*' =logfiles/status

(except for the log size after the t, which I fiddle so each one rotates
its logs about equally often.)

The logger for qmail puts the status in logfiles/status.  The loggers for
the tcpservers don't, although they make the main logfiles (current,
rotating to @whatever) correctly.  It just creates a zero length status
file.  The status lines logged from tcpserver look like this:

@40003aa13cff07eb6d7c tcpserver: status: 2/40

so it sure looks to me like they should be stored in logfiles/status.
Any suggestions what's wrong?

Regards,
John Levine, [EMAIL PROTECTED], Primary Perpetrator of "The Internet for Dummies",
Information Superhighwayman wanna-be, http://iecc.com/johnl, Sewer Commissioner
Finger for PGP key, f'print = 3A 5B D0 3F D9 A0 6A A4  2D AC 1E 9E A6 36 A3 47 




Re: Peculiar results with multilog

2001-03-03 Thread Dan Peterson

  John R Levine [EMAIL PROTECTED] wrote:

 I have the same run command for all the log files:
 
 exec setuidgid qmaill \
   multilog t s400 ./logfiles '-*' '+*status:*' =logfiles/status
 
 The status lines logged from tcpserver look like this:
 
 @40003aa13cff07eb6d7c tcpserver: status: 2/40

 Any suggestions what's wrong?

'*' matches anything except the character that follows it. Since "tcpserver"
has an 's' in it, the first '*' stops at the 's' in "tcpserver." Since it
doesn't see "tatus:*" after that, the line is not logged. Try adding some
spaces:

'-*' '+* status: *'

-- 
Dan Peterson [EMAIL PROTECTED] http://danp.net

"67MB is a reasonable size for named. Your box has 256M, so don't worry
about it." --Michael R. Wayne, on [EMAIL PROTECTED]