Skip to content
/ htail Public

An utility that displays your common logs, to stdout and in the browser

License

Notifications You must be signed in to change notification settings

delatech/htail

Repository files navigation

htail

An utility that displays your common logs, to stdout and in the browser

By firing up one command, htail gives you in your terminal and in your browser:

  • Your applications logs
  • Your webserver access/error logs
  • Your database logs
  • Your system logs

how-it-works

Why

I was tired of searching for all my log files when debugging issues that could span multiple applications. I wanted to fire up one command and be able to read all log files that were affected by an action. A few hours of coding later, I came up to that. Other solutions exists, but I wanted it to be platform independent and be easily deployable.

Differences with tail

htail tail
Type of features high level low level
Distribution for linux/osx yes yes
Multiple files support yes yes
Read from standard input yes yes
Display common log files by default yes no
HTTP output yes no
maturity alpha stable

Usage

htail is configurable via the command line.

  • htail: Run htails with the default options
  • htail /my/log1 /my/log2: tail the two provided files
  • htail -h: Display help

htail also parses the HTAIL_PATH environment variable for directories or log files to parses. The format is the same as the PATH environment variable:

export HTAIL_PATH="/var/log:/usr/local/var/log:/my/path/to/projects/*/logs/dev.log"
htail
# Similar to
htail /var/log /usr/local/var/log '/my/path/to/projects/*/logs/dev.log'

Installation

Debian

echo "deb http://apt.delatech.net/ squeeze main" >> /etc/apt/sources.list
curl https://raw.githubusercontent.com/delatech/gpg/master/delatech-public-key-sign.asc | apt-key add -
apt-get update
apt-get install htail

OSX

brew tap delatech/delatech
brew install htail

Anywhere with a valid Go installation

go get github.com/delatech/htail

Credits

Created by Marc Weistroff for DeLaTech

About

An utility that displays your common logs, to stdout and in the browser

Resources

License

Stars

Watchers

Forks

Packages

No packages published