[syslog-ng]program() destination
Maciek Pasternacki
maciekp@japhy.fnord.org
Wed, 28 Feb 2001 19:43:29 +0100
--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hello,
I have following configuration on my machine:
source logdev { unix-stream("/dev/log"); };
destination foo { program("/home/foo/.bin/loglogs.pl"); };
filter f_foo { not priority(debug) and not facility(mail); };
log { source(logdev); filter(f_foo); destination(foo); };
=20
File /home/foo/.bin/loglogs.pl come as follows:
#!/usr/bin/perl
open FOO, ">/tmp/loglog.log";
while ( <STDIN> ) {
print FOO $_;
}
close FOO;
Could anybody tell why file /tmp/loglog.log stays empty no matter what I do?
Greets,
--Maciek
--=20
__ Maciek Pasternacki <maciekp@japhy.fnord.org> [ http://japhy.fnord.org/ ]
`| _ |_\ / *CENSORED* ( full version at http://japhy.fnord.org/sig.txt )
,|{-}|}| }\/ =20
\/ |____/ =20
--FL5UXtIhxfXey3p5
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE6nUbQLgOvtpksmBURAlixAJ432SHXUOdw4LQRvIERUIZAVG4KXACcD9vO
9p/Gi/kbO9ewP6Omu/8LcU4=
=h3ia
-----END PGP SIGNATURE-----
--FL5UXtIhxfXey3p5--