Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Windows Eventlog from unix

by blaze (Friar)
on Sep 03, 2002 at 19:10 UTC ( [id://194864]=note: print w/replies, xml ) Need Help??


in reply to Windows Eventlog from unix

Win32API::Registry is a module for accessing the windows registry, so yes, it is for win32 systems

some of the monks here might be able to give you some suggestions, how are you accessing the windows box? who is the client and who is the server?

Replies are listed 'Best First'.
Re: Re: Windows Eventlog from unix
by Anonymous Monk on Sep 03, 2002 at 19:14 UTC
    I want to try to get all my logging in one place. I thought it might be possible to write a Perl script that runs on a Linux box, accesses the Windows EventLog, and then logs anything important (for example Warnings, or whatever they are called in Windows) to the Syslog running on the Linux box. Then all my *nix boxen would be logging to one box and my Windows machines would be logging on the same box.

      A fairly straightforward approach that's almost what you want, while leveraging the Win32 classes, is to have the Windows box do the event log parsing using the relevant modules and send the results onto the Linux box via a network socket or a text file on a network-accessible drive.

      If not P, what? Q maybe?
      "Sidney Morgenbesser"

        Yea, but then I have to install Perl on every windows box. I was hoping to avoid that. I know that on Windows you can open logs on another box (I have no idea how it does it . . .sockets? RPC? ), I thought that maybe the Eventlog module could do the same--open a connection to a remote box and read its events. Ah well.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-18 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found