Hi all,
sorry not a Perl user, but I have to enter a "perl pattern matching" expression into
a monitoring tool i'm using to parse log files for certain messages.
The perl expression I have at the moment is
Which I want to match the following messages in a log file
ftp.lock file exists may already be running
The local directory dirname does not exist
The transferred directory dirname does not exist
The followup directory dirname does not exist
Specified directory does not exist or cannot be accessed
Am I on the right lines ?
Can I separate each pattern with brackets like I have ?
Any help appreciated.
Thanks
sorry not a Perl user, but I have to enter a "perl pattern matching" expression into
a monitoring tool i'm using to parse log files for certain messages.
The perl expression I have at the moment is
Code:
(.*directory does not exist.*)|(ftp.lock file exists.*running.*)|(The FTP program.*is not recognised.*)
ftp.lock file exists may already be running
The local directory dirname does not exist
The transferred directory dirname does not exist
The followup directory dirname does not exist
Specified directory does not exist or cannot be accessed
Am I on the right lines ?
Can I separate each pattern with brackets like I have ?
Any help appreciated.
Thanks
Comment