What kind of Logfiles do you want to search in?

If they are any kind of ASCII-Files you may simply want to open the
files, loop through them and use RegExp's for searching the desired
information.

=====================8<=========================
open ( LOGFILE, "$loglfile") || print "Error: Could not open file: $logfile
\n";
       while ( <LOGFILE> ) {
        # Search Patterns and more ...
        }
close ( LOGFILE );
=====================8<=========================        

If you want to search Windows EventLog you need to use the 
Win32::EventLog - Module for fetching Informaitons from there.

If you want to read some real good Books then you really should have
a look at the O'Reiily Books. 

If you're a beginner, the best choice is:

        Introduction to Perl, by Tom Christiansen, Randal L. Schwarz

Otherwise there ist the popular "Camel-Book", THE Standard Book of Perl
Knowledge
        
        Programming Perl, 3rd Edition, by Larry Wall, Randal L. Schwarz and
Tom Christiansen

Or if you still are a Perl Programmer but you Lost your Inspiration your
choice may be

        The Perl Cookbook,

which is a Collection of Code Snipplets ( or quite a bit more ), sorted by
topics like networking, file manipulation, and so on...


Best regards
Sascha

> -----Urspr�ngliche Nachricht-----
> Von:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Freitag, 20. September 2002 21:16
> An:   [EMAIL PROTECTED];
> [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Betreff:      search function on web
> 
> My boss asked me to create a search function on the web to search on the
> log
> files. It should be able to search by date, job name, machine, or
> result(succesful or failed), and should also include a full -text search
> of
> the log files. 
> 
> Does someone has experience working on this kind of stuff using perl and
> CGI?
> 
> Is there any book mention this kind of technology? 
> 
> Now, I do not have any idea on to do it.
> 
> Thanks a lot in advance!
> 
> 
> Lixin
>   
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to