Re : [syslog-ng] udp Error binding socket;
192.168.7.2 is remote If I don't need to enter the IP how can I send it to a specfic log ? thx ----- Message d'origine ---- De : Mike <mike@jeke.fdns.net> À : Syslog-ng users' and developers' mailing list <syslog-ng@lists.balabit.hu> Envoyé le : Jeudi, 25 Janvier 2007, 17h55mn 09s Objet : Re: [syslog-ng] udp Error binding socket; is 192.168.7.2 an IP address on your syslog-ng machine? or is the IP address of the remote machine? the source {} config option tells syslog-ng which IP address to listen on, you do not need to enter the IP address of the remote host. Mike On Thu, 25 Jan 2007, news gonzo news gonzo wrote:
Hello, I have an error when I try to use a remote source I'm under RedHas AS3 Syslog2rc1. my config is : source s_remote_fw { udp(ip(192.168.7.2) port(514)); };
And the error is : Error binding socket; addr='AF_INET(192.168.7.2:514)', error='Cannot assign requested address (99)' Error initializing source driver; source='s_remote_fw' Thanks for your help ___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
On Thu, 25 Jan 2007, news gonzo news gonzo wrote:
192.168.7.2 is remote If I don't need to enter the IP how can I send it to a specfic log ?
thx you can do something like this: source s_remote_fw { udp(ip(ip_of_syslog_ng_host) port(514)); }; destination d_per_host { file( "/data/logs/$YEAR-$MONTH-$DAY/$HOST.txt" owner(loguser) group("loggroup") perm(0440) dir_perm(0775) ); }; log { source(s_remote_fw); destination(d_per_host); }; tune it to your liking.. (The syslog-ng FAQ has a lot of information like this, including better sample configs than mine above) Mike
participants (2)
-
Mike
-
news gonzo news gonzo