saw

command module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2018 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

saw

saw is a multi-purpose command line tool for AWS CloudWatch Logs

Saw Gif

Installation

Mac OS X
brew tap TylerBrock/saw
brew install saw
Linux
Arch Linux
# Using pacaur
pacaur -S saw

# Using trizen
trizen -S saw

# Using yaourt
yaourt -S saw

# Using makepkg
git clone https://aur.archlinux.org/saw.git
cd saw
makepkg -sri
Red Hat Based Distributions (Fedora/RHEL/CentOS/Amazon Linux)
rpm -i <link_to_rpm_you_need_from_releases>
Debian Based Distributions (Debian/Ubuntu)
wget <link_to_deb_you_need_from_releases>
sudo dpkg -i <the_deb_name>
Builds

We publish pre-built binaries as well as debs and rpms for the following OS:

  • Darwin (Mac OS X)
  • Linux
  • FreeBSD

On these platforms:

  • amd64 (64 bit x86)
  • armv6 (32 bit ARM v6)
  • armv7 (32 bit ARM v7)
  • arm64 (64 bit ARM v8)

Currently we don't publish any 32-bit or Windows builds. If this causes hardship, let me know.

I don't think saw works in the Windows terminal emulator as is.

Usage

  • Basic

    # Get list of log groups
    saw groups
    
    # Get list of streams for production log group
    saw streams production
    
  • Watch

    # Watch production log group
    saw watch production
    
    # Watch production log group streams for api
    saw watch production --prefix api
    
    # Watch production log group streams for api and filter for "error"
    saw watch production --prefix api --filter error
    

Features

  • Colorized output that can be formatted in various ways

    • --expand Explode JSON objects using indenting
    • --rawString Print JSON strings instead of escaping ("\n", ...)
    • --invert Invert white colors to black for light color schemes
  • Filter logs using CloudWatch patterns

    • --filter foo Filter logs for the text "foo"
  • Watch aggregated interleaved streams across a log group

    • saw watch production Stream logs from production log group
    • saw watch production --prefix api Stream logs from production log group with prefix "api"

TODO:

  • Relative or Absolute start and end time specification
    • saw dump --start 2017-01-01 Stream logs starting from the start of 2017
    • saw dump --start -1m Steam logs starting 1 minute ago
    • saw dump --start -3h --end -2h Stream logs from 3 - 2 hours ago

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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