cloudtail

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2018 License: GPL-3.0 Imports: 15 Imported by: 0

README

cloudtail

GNU tail-like Implementation for AWS CloudWatch Logs

Build Status codecov

Head to the releases section to download pre-compiled binaries for Linux (All Distributions), macOS, and Windows.

Only amd64 binaries are provided, easy to add others if requested.

 OPTIONS
  
  -version
        Display version and exit

  -f    Follow the log group (Waits for a non-existant log group to become available)
  -l    list available log groups and exit
  -n int
        Number of lines to dump (default 10)
  -p int
        with -f, terminate after process ID, PID dies (default -1)
  -q    never output metadata for log events
  -s int
        Interval (in seconds) to sleep during a follow (default 3)
  -v    always output metadata for log events

$> cloudtail [OPTIONS] logGroup # accepts substring

Docker

For whatever reason, there is a docker image you can use also.

$> alias ctail='docker run --rm -it tinyzimmer/cloudtail:latest  /cloudtail'
$> ctail --help

AWS Credentials

See the AWS documentation for configuring an SDK client. The order in which cloudtail checks credentials is:

Build

$> go get -u github.com/tinyzimmer/cloudtail
TODO
  • I know just from how it's written anything over n=50 will behave oddly, shouldn't affect -f
  • pid poll can be threaded off probably to be more efficient. I only put it there anyway because original tail has it.
  • bytes filters
  • stream locking for follow
  • date and search filters
  • more inline comments
  • custom output formats (json, yaml, etc.)
  • multitail abilities - display multiple log groups side by side
-r                   keep trying to open a group even if it is
                     non-existant or permissions are denied at first

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL