[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [multitail] regex help



> i have a line in a log that looks like this:
>    8:12:03  Netmail: 0,  Personal: 0,  Hudson: 0,  JAMbase: 0
> it's the only line i want to print from the log so i use 
> -em "Netmail:"

should work

> my colorscheme looks like this:
> #fmail.log
> colorscheme:_fmail
> cs_re:black,yellow,inverse:.*Netmail: [1-9].*

that would be yellow characters on a black background

> cs_re:black,yellow,inverse:.*Hudson: [1-9].*

that would be yellow characters on a black background

> cs_re:black,magenta,inverse:.*Netmail:.*

that would be magenta characters on a black background

> the line prints bright magenta  on black, UNLESS the netmail: or
> hudson: field is non-zero, in which case it prints yellow.
> i want to do the same kind of thing for the following line (watch for
> wrap):
>   29-Mar-2006 08:00:55 Session traf: in: 0 (0b) out: 0 (0b)
> [274b/352b]
> i use -em "Session traf:" to make sure the line is printed.
> i want it printed red unless in: or out: are non zero. my colorscheme
> looks like:
> #ip_1.log
> colorscheme:_ip_1
> cs_re:black,yellow,inverse:.*out:.[1-9].*
> cs_re:black,yellow,inverse:.*in:.[1-9].*
> cs_re:black,red,inverse:.*Session traf:.*
> 
> the problem is:  it's not working. the regex seems obvious to me (and
> the same type of thing works in the previous example), but i can't get
> it to work for the second colorscheme.
> 
> both of these logs are merged to the same window. this is 
> with 3.9.14.3
> 
> am i missing something obvious with the regex?
> 
> http://home.cogeco.ca/~tsummerfelt1
> telnet://ventedspleen.dyndns.org
> 

> --------------------------------------------------------------------------------------
> This message was sent through the MultiTail mailinglist (www.vanheusden.com/multitail)



Folkert van Heusden

-- 
iPod winnen? --> http://keetweej.vanheusden.com/redir.php?id=62
--------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com