perl-Logfile-Tail-Switch-0.003-alt1.noarch.rpm


Advertisement

Description

perl-Logfile-Tail-Switch - Tail a file, but switch when another file with newer name appears

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Logfile-Tail-Switch
Package version 0.003
Package release alt1
Package architecture noarch
Package type rpm
Installed size 28.00 KB
Download size 28.00 KB
Official Mirror ftp.altlinux.org
This class can be used to tail a file, but switch when a file of a newer name
appears. For example, on an Spanel server, the webserver is configured to write
to daily log files:
/s/<SITE-NAME>/syslog/http_access.<YYYY>-<MM>-<DD>.log
/s/<SITE-NAME>/syslog/https_access.<YYYY>-<MM>-<DD>.log
So, when tailing you will need to switch to a new log file if you cross day
boundary.
When using this class, you specify a glob pattern of files, e.g.
`/s/example.com/syslog/http_access.*.log'. Then you call the `getline' method.
This class will first select the newest file (via asciibetical sorting) from the
glob pattern and tail it. Then, periodically (by default at most every 2
seconds) the glob pattern will be checked again. If there is one or more newer
files, they will be read in full and then tail-ed, until an even newer file
comes along. For example, this is the list of files in `/s/example.com/syslog'
at time *t1*:
http_access.2017-06-05.log.gz
http_access.2017-06-06.log
http_access.2017-06-07.log
`http_access.2017-06-07.log' will first be tail-ed. When
`http_access.2017-06-08.log' appears at time *t2*, this file will be read from
start to finish then tail'ed. When `http_access.2017-06-09.log' appears the
next day, that file will be read then tail'ed. And so on.
=for Pod::Coverage ^(DESTROY)$

Alternatives

Package Version Architecture Repository
perl-Logfile-Tail-Switch - - -

Requires

Name Value
/usr/share/perl5 -
perl(File/Glob.pm) -
perl(Time/HiRes.pm) -
perl-base >= 1:5.10.1
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Logfile/Tail/Switch.pm) = 0.003
perl-Logfile-Tail-Switch = 0.003-alt1

Download

Type URL
Binary Package perl-Logfile-Tail-Switch-0.003-alt1.noarch.rpm
Source Package perl-Logfile-Tail-Switch-0.003-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Logfile-Tail-Switch rpm package:
    # sudo apt-get install perl-Logfile-Tail-Switch

Files

Path
/usr/share/doc/perl-Logfile-Tail-Switch-0.003/Changes
/usr/share/doc/perl-Logfile-Tail-Switch-0.003/Changes.new
/usr/share/doc/perl-Logfile-Tail-Switch-0.003/LICENSE
/usr/share/doc/perl-Logfile-Tail-Switch-0.003/README
/usr/share/perl5/Logfile/
/usr/share/perl5/Logfile/Tail/Switch.pm

See Also

Package Description
perl-Logfile-Tail-scripts-0.7-alt1.noarch.rpm Logfile-Tail scripts
perl-Logger-Simple-2.0-alt1.noarch.rpm Implementation of the Simran-Log-Log and Simran-Error-Error modules
perl-Logging-MultiChannel-1.01-alt1.noarch.rpm A full featured module for implimenting log messages on multiple channels to multiple targets
perl-Logging-Simple-1.04-alt1.noarch.rpm A simple but flexible logging mechanism
perl-Logic-0.02-alt1.noarch.rpm perl module Logic
perl-Logic-Kleene-0.05-alt1.noarch.rpm Kleene three-valued logic
perl-Logic-Tools-1.00-alt1.noarch.rpm The great new Logic::Tools!
perl-Logwatch-RecordTree-2.056-alt1.noarch.rpm an object to collect and print Logwatch events
perl-Loompa-0.51-alt1.noarch.rpm Lightweight object-oriented miniature Perl assistant
perl-Loop-Control-1.100861-alt1.noarch.rpm FIRST and NEXT functions for loops
perl-Loop-Flow-Object-0.03-alt1.noarch.rpm perl module Loop-Flow-Object
perl-Loop-Sustainable-0.02-alt1.noarch.rpm Provides sustainable loop
perl-Lorem-0.22-alt1.noarch.rpm Document creation
perl-LotusNotes-LoadExport-1.01-alt1.noarch.rpm perl module LotusNotes-LoadExport
perl-Lucene-QueryParser-1.04-alt1.noarch.rpm perl module Lucene-QueryParser
Advertisement
Advertisement