<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Ohh Sorry <img src="http://gfx2.hotmail.com/mail/w3/ltr/emoticons/smile_embaressed.gif" alt="" height="19" width="19"> I didn't note it, Thanks so much dear friend<br><br>Best Regards<br>Bassam Muhammad<br><br>&gt; Date: Wed, 1 Jul 2009 14:26:18 +0200<br>&gt; From: Siem.Korteweg@qnh.nl<br>&gt; To: syslog-ng@lists.balabit.hu<br>&gt; Subject: RE: [syslog-ng] Send a specific log by email<br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; the example script is in the same section of the page. Store it in the path of your destination -&gt; program. Edit it and change the contents of the variable $TO to indicate the destination and check whether your system knows /usr/sbin/sendmail.<br>&gt; <br>&gt; regards,<br>&gt; <br>&gt; Siem Korteweg<br>&gt; <br>&gt; -----Oorspronkelijk bericht-----<br>&gt; Van: syslog-ng-bounces@lists.balabit.hu namens Reaky Rok<br>&gt; Verzonden: wo 1-7-2009 14:21<br>&gt; Aan: syslog-ng@lists.balabit.hu<br>&gt; Onderwerp: Re: [syslog-ng] Send a specific log by email<br>&gt; <br>&gt; <br>&gt; This's great<br>&gt; But what about the perl escript, Could you please provide anexample for it, As I'm not good in programming.<br>&gt; Thanks for your help<br>&gt; <br>&gt; Best Regards<br>&gt; Bassam Muhammad<br>&gt; <br>&gt; &gt; Date: Tue, 30 Jun 2009 19:04:55 +0200<br>&gt; &gt; From: Siem.Korteweg@qnh.nl<br>&gt; &gt; To: syslog-ng@lists.balabit.hu<br>&gt; &gt; Subject: RE: [syslog-ng] Send a specific log by email<br>&gt; &gt;<br>&gt; &gt; Hi Reaky,<br>&gt; &gt;<br>&gt; &gt; define a new source with your specific IP and define a destination using "program" in stead of "file" (http://www.campin.net/newlogcheck.html "Email certain logs"). Finally you combine both in a new log-definition.<br>&gt; &gt;<br>&gt; &gt; regards,<br>&gt; &gt;<br>&gt; &gt; Siem Korteweg<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; -----Oorspronkelijk bericht-----<br>&gt; &gt; Van: syslog-ng-bounces@lists.balabit.hu namens Reaky Rok<br>&gt; &gt; Verzonden: di 30-6-2009 11:20<br>&gt; &gt; Aan: syslog-ng@lists.balabit.hu<br>&gt; &gt; Onderwerp: [syslog-ng] Send a specific log by email<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Hi friends<br>&gt; &gt;          I have syslog-ng installed in RHEL5 server, I make it as CEntral log for all servers in my network, Filtered by IP<br>&gt; &gt; Now What I want to do is make it send to me an email for a specific log for one of my server, In other word when any log sent from this IP (192.168.1.1 ) For example to send me email with this new log value to myemail@mydomain.com<br>&gt; &gt; The following is the part of configuration for my syslog-ng.conf that related with remote servers.<br>&gt; &gt; =============================================<br>&gt; &gt;<br>&gt; &gt; source s_remote {<br>&gt; &gt;         tcp(ip(0.0.0.0) port(514));<br>&gt; &gt;         udp(ip(0.0.0.0) port(514));<br>&gt; &gt; };<br>&gt; &gt;<br>&gt; &gt; destination d_separatedbyhosts {<br>&gt; &gt;         file("/var/log/syslog-ng/servers/$HOST/$FACILITY.log" owner("root") group("root") perm(0640) dir_perm(0750) create_dirs(yes));<br>&gt; &gt; };<br>&gt; &gt;<br>&gt; &gt; log { source(s_remote); destination(d_separatedbyhosts); };<br>&gt; &gt; ===============================================<br>&gt; &gt;<br>&gt; &gt; Thanks<br>&gt; &gt; Best Regards<br>&gt; &gt; Reaky<br>&gt; &gt;<br>&gt; &gt; _________________________________________________________________<br>&gt; &gt; Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!<br>&gt; &gt; http://spaces.live.com/spacesapi.aspx?wx_action=create&amp;wx_url=/friends.aspx&amp;mkt=en-us<br>&gt; &gt;<br>&gt; <br>&gt; _________________________________________________________________<br>&gt; Drag n' drop-Get easy photo sharing with Windows LiveT Photos.<br>&gt; <br>&gt; http://www.microsoft.com/windows/windowslive/products/photos.aspx<br>&gt; <br><br /><hr />What can you do with the new Windows Live? <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>Find out</a></body>
</html>