|
NAMEscribe_cat.pl - Reads log messages from standard input and sends to a scribe instanceSYNOPSISscribe_cat.pl --host=HOST --port=PORT --level=LEVEL --category=CATEGORY # Example Apache CustomLog entry CustomLog "|scribe_cat.pl --category=www" "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" DESCRIPTIONA simple script that uses the functionality of Log::Dispatch::Scribe to read from standard input and send to a scribe instance. Offers categorisation by regular expression match on the log message.Apache LoggingThis script is suitable for use with Apache httpd for piped logging per the CustomLog example shown above.Note that special characters in the command given in the Apache configuration file need to be escaped; for example, this command line: /usr/local/bin/scribe_cat.pl --category-re 'local$1= /\?p=([^ ]+)' would be specified in the configuration file as: CustomLog "|/usr/local/bin/scribe_cat.pl --category-re \'local$1= /\\\\?p=([^ ]+)\'" combined OPTIONS
SEE ALSOLog::Dispatch::Scribe, File::Tail::ScribeApache httpd piped log documentation, <http://httpd.apache.org/docs/2.2/logs.html#piped> AUTHORJon Schutz, "<jon at jschutz.net>" <http://notes.jschutz.net>BUGSPlease report any bugs or feature requests to "bug-log-logdispatch-scribe at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Log-Dispatch-Scribe>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORTYou can find documentation for this module with the perldoc command.perldoc scribe_cat.pl You can also look for information at:
COPYRIGHT & LICENSECopyright 2009 Jon Schutz, all rights reserved.This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |