LogFilter
Description
LogFilter is a simple Perl module to filter log files. It reads a keywords file and an exclude file, and then prints lines from the log file that match any of the keywords and do not match any of the exclude phrases.
Usage
Here is a basic usage example:
use LogFilter;
my $filter = LogFilter->new($keywords_file, $exclude_file, $log_file, $interval);
$filter->filter();
The new function takes four arguments:
- A file containing keywords, one per line.
- A file containing exclusion patterns, one per line.
- The log file to be filtered.
- The interval (in seconds) at which the log file should be read.
Installation
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
Author
Kawamura Shingo (pannakoota@gmail.com)
License
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.28.1 or, at your option, any later version of Perl 5 you may have available.