mmethe has asked for the wisdom of the Perl Monks concerning the following question:

I am VERY new to perl and have an ambitious undertaking. I'd like to parse the system log on a Windows 2000 server. I want to get all instances of printing toa specific printer port. I want to capture the user who sent the job and the pages printed. I can see all of this if I save the system log and then look at it as text. I just dont have the first clue how to get started writing this script. I see this info being dumped into a test file that management can then peruse and the abuse to appropriate user. Any ideas? Any existing scripts I can use for this? Thanks in advance -mmethe http://blatbox.frihost.net

Replies are listed 'Best First'.
Re: Systel Log Print Parse
by mrborisguy (Hermit) on Dec 13, 2005 at 21:37 UTC

    Here's what I'd probably do:

    1. Come to the Monastery. Oh... looks like you've already done that, good!
    2. Settle down. Take a deep breath. Take the time to spell your title correctly.
    3. Take a look at Tutorials, especially the "Getting Started With Perl" section, and then probably the "Regex" section. Another option would be to find yourself a good book on perl.
    4. Since you mention Windows 2000, find a copy of ActiveState Perl on the internet and start playing with perl.

    Your fellow monks will be happy to help you out - but not many will write the program for you - so continue to ask lots of questions

        -Bryan