Skip to main content

Show file growing rate in real time

Project description

Downloads

frate

Measure file growing rate in real time.

Show the number of lines and KB per second the file is growing.

One useful use case is to monitor the “acess.log” of a webserver, to get a estimative of requests per second.

Simple example:

$ frate /var/log/nginx/access.log

Lines: 195.0/s, Avg: 174.6/s | Write: 18.5KB/s, Avg: 16.5KB/s

Install

Install using pip:

pip install frate

or

Download and set executable permission on the script file:

chmod +x frate.py

or

Download and run using the python interpreter:

python frate.py

Usage

Usage: frate file

show file growing rate, 'control-c' to stop

Options:
--version   show program's version number and exit
-h, --help  show this help message and exit

Notes

  • Works on Python 2 and Python 3

  • Tested on Linux and Windows (Cygwin)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frate-0.3.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file frate-0.3.tar.gz.

File metadata

  • Download URL: frate-0.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.14

File hashes

Hashes for frate-0.3.tar.gz
Algorithm Hash digest
SHA256 6235e65ace75409dff610bdaa072ead55de8855d2e1a45c2071e2b86e3683b06
MD5 064e7de9bb11580765bba4268b3a13e1
BLAKE2b-256 e5ef26626cf751f3fc9b7937ce14da5f832b2ec9e17aefe2d84404406dc05555

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page