I installed syslog-ng-1.4.8 yesterday. but program() wasn't operate. why it doesn't operate? my syslog-ng.conf is here. =====================================START======================== options { use_dns(no); }; source router_src { udp(port(514)); }; destination router_total_log { file("/root/logfile/router_total_log"); program(/root/sample.sh); }; destination deny_tcp_all_log { file("/root/logfile/deny_tcp_all_log"); }; destination deny_udp_all_log { file("/root/logfile/deny_udp_all_log"); }; filter deny_tcp_all { match("tcp"); }; filter deny_udp_all { match("udp"); }; log { source(router_src); destination(router_total_log); }; log { source(router_src); filter(deny_tcp_all); destination(deny_tcp_all_log); }; log { source(router_src); filter(deny_udp_all); }; =================================END====================== sample.sh is simple script. (echo asdf >> /root/sample.txt) but doesn't operate. shell script permission is 755. .....
sample.sh is simple script. (echo asdf >> /root/sample.txt) but doesn't operate. shell script permission is 755. .....
program is executed once, and each message is sent to the stdin of the given program. you may try strace to find out what the problem might be. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
participants (2)
-
Balazs Scheidler
-
Hyunmoo Rhee