hmerrill has asked for the wisdom of the Perl Monks concerning the following question:
so after restarting syslogd, log entries for local4 get written to fifo /tmp/my_log_fifo. Then I have my perl script read lines from the fifo file, and everything works fine.1. mkfifo /tmp/my_log_fifo 2. In /etc/syslog.conf: local4.* |/tmp/my_log_fifo
Any help or ideas are greatly appreciated.1. has anyone done this successfully, and if so, how? 2. am I missing something, or is there a way to make fifo's persistent for reboots? 2. is it possible to code a perl script such that the perl script can be specified right in the /etc/syslog.conf, like local4.* |/path/to/my_perl_script.pl in place of the fifo file?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: insert syslog log entries into MySQL?
by Abigail-II (Bishop) on Oct 20, 2003 at 16:06 UTC | |
by hmerrill (Friar) on Oct 20, 2003 at 16:40 UTC | |
|
Re: insert syslog log entries into MySQL?
by mpeppler (Vicar) on Oct 20, 2003 at 16:00 UTC | |
by hmerrill (Friar) on Oct 20, 2003 at 16:29 UTC | |
by waswas-fng (Curate) on Oct 20, 2003 at 19:25 UTC |