ok i read something about jails.
i will explain the situation a bit better.
i installed the service syslog-ng. now i configured the config file /usr/local/etc/syslog-ng/syslog-ng.conf like this:
source net { udp(ip("0.0.0.0") port(514)); }; destination d_mysql { pipe("/var/log/mysql.pipe" template("INSERT INTO logs (host, facility, priority, level, tag, datetime, program, msg) VALUES ( '$HOST', '$FACILITY', '$PRIORITY', '$LEVEL', '$TAG', '$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC','$PROGRAM', '$MSG' );\n") template-escape(yes)); }; # loggt alle Meldungen der Router und Switches ab dem Level Notice log { source(net); filter(f_c_notice); destination(d_mysql); }; # # filter definitions # # Level Filters filter f_c_emerg { level (emerg); }; filter f_c_alert { level (alert .. emerg); }; filter f_c_crit { level (crit .. emerg); }; filter f_c_err { level (err .. emerg); }; filter f_c_warning { level (warning .. emerg); }; filter f_c_notice { level (notice .. emerg); }; filter f_c_info { level (info .. emerg); }; filter f_c_debug { level (debug .. emerg); }; |
later i want to save the log enteries into a database but first the syslog-ng service have to run! :-)
ok now i defined the source network with this parameter
source net { udp(ip("0.0.0.0") port(514)); }; |
as mutch as i know menns this parameter that the service listen to all ip's with the port udp 514. right?
so now a in a jail that doesn't works! right?
so i have to define a ip in the config of syslog-ng. this is the ip of the jail?
how would the configuration for the jail be? i have now idea how tho configure jails.
at the end the syslog-ng service must receive all syslog messages from the devices in the network. that means from all ip how send something on udp port 514.
have you a solution for that?
thanks a lot and sorry for my bad english i hope you understand what i mean!!!