Skip to main content

Graphical log file viewer

Project description

levv - Log File Event Viewer

Command line based graphical log file viewer.

Screen Shot

 


Table of contents

 


Install

$ pip3 install levv

 


Examples

  • kernel messages

levv -i /dev/kmsg -I kmsg

  • syslog messages

levv -i /var/log/syslog

  • Apache web logs

levv -i /var/log/apache2/access.log -I www

  • nginx web logs

levv -i /var/log/nginx/access.log -I www

  • View data from stdin / pipe

echo "Hello World!" | levv -i -

tail -f /path/to/some/file.log | levv -i -

 


Keyboard

  • LEFT = Scroll back in time

  • RIGHT = Scroll forward in time

  • UP = Zoom in

  • Down = Zoom out

  • s = Scroll automatically

  • l = Change number of lines per record

  • q / esc = Quit

 


Command Line

usage: levv [-h] [--inputfile INPUTFILE] [--inputformat INPUTFORMAT]
            [--inputbreak INPUTBREAK] [--inputfilter INPUTFILTER]
            [--outputfile OUTPUTFILE] [--outputformat OUTPUTFORMAT]
            [--timerange TIMERANGE] [--time TIME] [--refresh REFRESH]
            [--scroll SCROLL] [--lines LINES] [--maxmsgbuf MAXMSGBUF]
            [--maxfileread MAXFILEREAD] [--debug]

Event monitor.

optional arguments:
  -h, --help            show this help message and exit
  --inputfile INPUTFILE, -i INPUTFILE
                        Log file to parse
  --inputformat INPUTFORMAT, -I INPUTFORMAT
                        Input data format
  --inputbreak INPUTBREAK, -b INPUTBREAK
                        Line break
  --inputfilter INPUTFILTER, -f INPUTFILTER
                        Regex filter expression for input data
  --outputfile OUTPUTFILE, -o OUTPUTFILE
                        Append logs to output file
  --outputformat OUTPUTFORMAT, -O OUTPUTFORMAT
                        Output data format
  --timerange TIMERANGE, -r TIMERANGE
                        Time range
  --time TIME, -t TIME  Time start
  --refresh REFRESH, -R REFRESH
                        Data refresh interval in seconds, 0 for no refresh
  --scroll SCROLL, -s SCROLL
                        1-100, percentage of screen for auto scroll position,
                        0 = Do not auto scroll
  --lines LINES, -l LINES
                        Number of lines per timeline item, can be 1, 2, or 3
  --maxmsgbuf MAXMSGBUF, -m MAXMSGBUF
                        Maxium number of messages to queue
  --maxfileread MAXFILEREAD, -M MAXFILEREAD
                        Maxium number of bytes to read from a file, 0 for all
  --debug, -D           Show debug information

 


References

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

levv-0.1.7-py2.py3-none-any.whl (12.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file levv-0.1.7-py2.py3-none-any.whl.

File metadata

  • Download URL: levv-0.1.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5

File hashes

Hashes for levv-0.1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3ae5da69566c22f9ed401185bc2802f8063785a3ebe69390c320c681707ac5be
MD5 ab5c26a35e7d88cc58e595e6dd5c2bfa
BLAKE2b-256 d5eab8a7371493b1053dd8827f58f10a5ff3c732159a12d8641cc70cfd689293

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