Logtail 2 7

broken image


Not enough search parameters. I'm using defaults. You have chosen search in content of rpms. Display 1 - 40 hits of 225. Search took 0.01 seconds. Logcheck utilizes a program called logtail that remembers the last position it read from in a log file. Logtail-v3 logtail is used to monitor log files by tracking and only outputing the log from last time logtail was run, Can handle large files and log rolls.

logtail displays one or more log files in the terminal in the manner of tail -f.

The logarithm of a number is an exponent, or power. It represents the exponent or power to which the base (often 10, but sometimes 2 or another number) must be raised to get the number that is in the argument of the log expression. To calculate Log2x, use 2 as a base instead of 10. Logtail should then appear in your admin, and provide access to these files - including a live tail of the file. Note that files will not appear if the django process cannot access them. You can set the default update interval for the log tailing: LOGTAILUPDATEINTERVAL = 50000 # Default is 3000 (three second) Developing.

Features of logtail:

  • it displays more than one logfile, one above the other or side-by-side
  • the display updates as each logfile grows
  • use tab or arrow keys to navigate and scroll
  • you can fork logtail-dash to create customised views of your logfile data

logtail is written in Rust and uses tui-rs to create the terminal UI, and linemux to monitor the logfiles.

Operating Systems

  • Linux: works on Ubuntu.
  • Windows: works on Windows 10.
  • MacOS: let me know what happens!

Install from crates.io

1 Install Rust via https://doc.rust-lang.org/cargo/getting-started/installation.html

2 Linux (Ubuntu)

3a. Linux/MacOS install logtail:

3b. Windows install logtail-crossterm:

To build on Windows you must use the 'nightly' compiler until the 'itarget' feature becomes part of 'stable', so install Rust nightly using rustup:

To build logtail-crossterm on Windows, clone logtail-dash, build with +nightly and use the binary it creates under ./taget/release:

Note: vdash is a fork of logtail that provides a dashboard for SAFE Network Vaults (see vdash).

Usage

In the terminal type the command and the paths of one or more logfiles you want to monitor. For example:

When the dashboard is active, pressing 'v' or 'h' switches between horizontal and vertical arrangments (when viewing more than one logfile).

Long tail 2 7 qt

For more information:

Customised Logfile Dashboards

If you want to use the core functionality of logtail-dash to createa customised terminal display based on real time updates to files,you can do this by creating a fork and customising the files in src/custom:

src/custom/opt.rs: command line options and usage

src/custom/app.rs: application logic (e.g. parsing logfiles to `dashboard state)

src/custom/ui.rs : dashboard display and keyboard/mouse interface

Example: vdash is a fork of logtail that provides a dashboard for SAFE Network Vaults (see vdash).

Build

Get pre-requisites

  1. Get Rust: see: https://doc.rust-lang.org/cargo/getting-started/installation.html

Get code

Build

Linux / MacOS

Builds logtail which uses the termion backend (see tui-rs).Note: MacOS is untested

Windows 10

Builds logtail-crossterm which uses the crossterm backend (see tui-rs), with the intention to support Windows.

NOT working on Windows yet, this is being worked on at the moment. Help with testing appreciated.

Quick Test

Here's a couple of useful commands to build and run logtail to monitor a couple of Linux logfiles.

Open two terminals and in one run logtail-dash with:

In a second terminal you can affect the first logfile by trying and failing to 'su root':

You can use any logfiles for this basic level of testing. Here are some to try:

Long Tail 2 7 Qt

LICENSE

Everything is GPL3.0 unless otherwise stated. Any contributions are accepted on the condition they conform to this license.

Long Tail 2 7 Inch

See also ./LICENSE





broken image