Thanks for the hint. I'm still having a little trouble getting it to do what I want, but at least no I know about pcretest, which I didn't before. <br><br>Thanks,<br>Steve.<br><br><br><div><span class="gmail_quote">
On 5/14/07, <b class="gmail_sendername">John G</b> <<a href="mailto:jg2727@gmail.com">jg2727@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 5/14/07, Steve Holmes <<a href="mailto:sholmes42@mac.com">sholmes42@mac.com</a>> wrote:<br>> I may still not be understanding how the pattern matching is done for the<br>> LOG keyword.<br>><br>> I have:
<br>><br>>         LOG /var/adm/messages %(?-i)auth.error COLOR=yellow<br>> IGNORE="%(?-i)sshd|flavor_basic: (null)"<br>><br>> Which I think should mean: look for the string "auth.error" in
<br>> /var/adm/messages and then ignore lines with "sshd" OR "flavor_basic:<br>> (null)" in them.<br>><br>> If I *only* have IGNORE=sshd that seems to work, but I really need to ignore<br>> both (at least for my testing), but when I do it as above, I get yellow
<br>> screens for auth.error lines even if they have the string "sshd" in them.<br>><br>> Am I missing something?<br>><br>> BTW, in BB I have a very long list of strings to ignore. Is there an easier
<br>> way to do that in hobbit other than to put each string into an IGNORE<br>> clause?<br>><br>> Thanks,<br>> Steve Holmes<br>><br>><br><br>Try adding back slashes.<br>IGNORE="%(?-i)sshd|flavor_basic: \(null\)"
<br><br>$ pcretest<br>PCRE version 6.7 04-Jul-2006<br><br>  re> /(?-i)sshd|flavor_basic: (null)/<br>data> flavor_basic: (null)<br>No match<br>$ pcretest<br>PCRE version 6.7 04-Jul-2006<br><br>  re> /(?-i)sshd|flavor_basic: \(null\)/
<br>data> flavor_basic: (null)<br> 0: flavor_basic: (null)<br>data> sshd<br> 0: sshd<br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk
</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>I believe I found the missing link between animal and civilized man. It is<br>us. -Konrad Lorenz, ethologist, Nobel laureate (1903-1989)<br><br>We in America do not have government by the majority. We have government by
<br>the majority who participate. -Thomas Jefferson, third US president,<br>architect and author (1743-1826)