Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Sys::Syslog Hangs

by andreychek (Parson)
on Apr 06, 2002 at 05:54 UTC ( #157128=note: print w/ replies, xml ) Need Help??

in reply to Sys::Syslog Hangs

I was messing with this myself a little while ago, and had similar problems. It appears that in order for Sys::Syslog to function properly, the syslog daemon must actually be running with the -r flag set. From the syslogd manpage:

-r This option will enable the facility to receive message from the network using an internet domain socket with the syslog service (see services(5)). The default is to not receive any messages from the network.
So, even if your Perl script is running on the same machine as the syslog daemon, you still need to use the -r flag.

Beware, however, that running syslog with -r opens the door for security issues. Now, anyone can send messages to your syslog daemon. You may wish to use some sort of firewall rules to block incoming traffic to your syslog daemon from the outside world.

Good luck!

Comment on Re: Sys::Syslog Hangs
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://157128]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2015-03-31 07:06 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (660 votes), past polls