Hi,
My program multitail enables users to monitor not only a file, but also a
directory of files. One can then set to monitor for example:
/var/log/apache*/*/*
As you can see it supports multiple levels of directories.
Currently I'm using glob() to get a list of files matching the given pattern
and then calculate the difference with the previous run, every 5 seconds.
My question now is: will I also be able to do this with FAM? Or will I need
to retrieve complete directory-listings for each level (/var/log/apache1,
/var/log/apache2, /var/log/apache1/site1, /var/log/apache1/site2, etc.) and
start monitoring each of them? Or can I just pass "/var/log/apache*/*/*" to
fam?
Folkert van Heusden
+------------------------------------------------------------------+
|UNIX admin? Then give MultiTail (http://vanheusden.com/multitail/)|
|a try, it brings monitoring logfiles to a different level! See |
|http://vanheusden.com/multitail/features.html for a feature list. |
+------------------------------------------= www.unixsoftware.nl =-+
|