2007-10-26 23:26:16 UTC
Hi Anthony,
do these logfiles change or appear and disappear?
The config file is just a piece of perl code. You can do the following:
@searches = ();
foreach my $logfile (glob 'C:\path\*.log') {
push(@searches, {
tag => basename($logfile),
logfile => $logfile,
options => 'noperfdata',
criticalpatterns => .....
});
}
If your logfiles don't change, you could also number the tags:
@searches = ();
my $count = 1;
foreach my $logfile (glob 'C:\path\*.log') {
push(@searches, {
tag => 'tagxy'.$count++,
....
Gerhard