[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omaha.pm] Re: Net::Dev::Tools::Syslog -- local?



-ponder-

j


-----Original Message-----
From: Scott Parsons [mailto:scott.parsons@marconi.com]
Sent: Monday, September 20, 2004 10:14 AM
To: jhannah@omnihotels.com
Subject: Re: Net::Dev::Tools::Syslog -- local?



Jay
(Sorry for late reply, was out of office last week.)


I do not think you are missing anything in your use of 
Net::Dev::Tools::Syslog. It does not account for local messages, All it 
does is open a socket to listen for messages:
(line 1315)
    # open socket
    $sock = IO::Socket::INET->new(
       LocalPort =>  $listen->{port},
       Proto     =>  $listen->{proto},
    );


My intent when writing this was not for someone to make a syslog daemon but 
to use the listen function when testing for syslog messages arriving at a 
device. Thus did not account for local messages. Actually my main goal was 
to write a syslog parser, in doing that needed a quick/simple 
generator/anaylzer, that became send/listen function.


For just syslog functionality you should not need both modules, just 
Sys::Syslog, it looks like it tries to handle streams.


Thanks for the feedback, guess I should add to my doc about the intent of 
the functions, since its limiting.



Scott Parsons



At 06:05 PM 9/14/2004 -0500, you wrote:

>Hi Scott --
>
>I'm trying to write an abstraction for syslog'ing for our company (local 
>and remote, many servers). Sometimes I'm remote, UDP port 514 is open, and 
>in those cases Net::Dev::Tools::Syslog works great. Thanks!
>
>Other times, though, I'm local and UDP port 514 is not open. "logger" from 
>the command line still works, and I assume Sys::Syslog would also work 
>using types 'unix' or 'stream'...
>
>It appears to me that I need to use *both* Net::Dev::Tools::Syslog and 
>Sys::Syslog in my environment. I can't seem to find any package that does 
>what both do in a single bundle. Am I missing something obvious to you?
>
>Thanks,
>
>Jay Hannah
>Director of Development
>Omni Hotels Reservation Center
>Tel: (402) 952-6573
>Mobile: (402) 578-3976
>Email: jhannah@omnihotels.com
>
>The Omni Majestic -- a unique boutique concept -- takes you back in time 
>with concierge style service in the heart of St. Louis.  Learn more at 
>www.omnimajestic.com.