<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
With regards to filters for host, which one of the two is correct? (if any)<br><br>filter F_mailservers&nbsp;&nbsp;&nbsp; { host ("^mail$*") or ("^smtp$); };<br>
filter F_mailservers&nbsp;&nbsp;&nbsp; { host("^mail$") or
host("^smtp$"); }; <br><br>Again, I am trying to find hosts named mailserver1, mailserver2, mailserver-gw, smtpgw1 and smtp-gw<br><br>Thanks in advance,<br><br>.vp<br><blockquote><hr>From: wiskbroom@hotmail.com<br>To: syslog-ng@lists.balabit.hu<br>Date: Thu, 8 May 2008 15:08:48 -0400<br>Subject: Re: [syslog-ng] Problems With Filter Rules - Using First Rule, Not One Intended<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</style>



syslog-ng 2.0.7<br><br>I remember needing that in order to see the hostname from a WAP not too long ago.<br><br>&gt; From: Sandor.Geller@morganstanley.com<br>&gt; To: syslog-ng@lists.balabit.hu<br>&gt; Date: Thu, 8 May 2008 19:19:05 +0100<br>&gt; Subject: Re: [syslog-ng] Problems With Filter Rules - Using First Rule,        Not One Intended<br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; &gt; Here are some recent logs.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; May  8 13:48:41 mailserver1.mycorp.net/mailserver1.mycorp.net<br>&gt; &gt; postfix/smtp[22079]: [ID 197553 mail.info] BBBF66CB1E:<br>&gt; &gt; to=&lt;b.smith@nodomain.net&gt;,<br>&gt; &gt; relay=192.168.12.1[192.168.12.1]:25, delay=0.48,<br>&gt; &gt; delays=0.31/0.02/0.01/0.14, dsn=2.6.0, status=sent (250 2.6.0<br>&gt; &gt;<br>&gt; &gt; &lt;B7C2C6BA798F3C4DBDD78BEDC1F8AD5732046E44@ns2.someotherdomain.<br>&gt; com&gt; Queued mail for delivery)<br>&gt; <br>&gt; Which version of syslog-ng are you using? I remember that postfix<br>&gt; (more precisely postfix/daemonname-like program names) caused<br>&gt; problems for older versions, although this might be unrelated.<br>&gt; <br>&gt; &gt; I *believe* the double hostname is die to<br>&gt; &gt; chain_hostnames=yes?  Don't remember.<br>&gt; <br>&gt; No, there would be an '@' between the hostnames. I still don't see<br>&gt; how 'sw' could match your logs :(<br>&gt; <br>&gt; regards,<br>&gt; <br>&gt; Sandor<br>&gt; --------------------------------------------------------<br>&gt; <br>&gt; NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.<br>&gt; ______________________________________________________________________________<br>&gt; Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<br>&gt; Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng<br>&gt; FAQ: http://www.campin.net/syslog-ng/faq.html<br>&gt; <br>
</blockquote></body>
</html>