-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marcin Floryan wrote:
> Hi!
> 
> Anyone have any view over the best way to watch for changes in log
> files to do some analysis?
> 
> I want to create some small scripts/software to watch for changes in
> log files (like /var/log/messages or var/log/mai) and register some
> data in a db and I found to possible approaches:
> 
> * to use Perl File::Tail to listen on a file and process any text that arrives
> * to use tail -f and pipe the output to my software
> 
> And I was thinking what would the performance implications be and the
> preferred way of doing such analysis.
> 
> Kind regards,

Probably better to send this to the openSuSE programming list than this
list.

Personal view is that it would be best to use a Perl module if it exists
in a script daemon, rather than use a command line call and pipe data to
a perl script.

Not on performance grounds, but more because one can design the script
to handle unusual events and manage processing accordingly (especially
if you are backending with a database that in itself may be adding to
the logs you are monitoring).

But that is a personal preference...., others may be more comfortable
with the pipe approach.


- --
==============================================================================
I have always wished that my computer would be as easy to use as my
telephone.
My wish has come true. I no longer know how to use my telephone.

Bjarne Stroustrup
==============================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHghz7asN0sSnLmgIRAul0AJ9Og5nvnRfLiZW5j7V/XrkpEHe/uwCgsHfF
exk2oAyrMwSSCYLOWcBjt4Y=
=C/be
-----END PGP SIGNATURE-----
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to