Giter VIP home page Giter VIP logo

cw's Introduction

cw

Release Software License

The best way to tail AWS Cloudwatch Logs from your terminal.

Author - Luca Grulla - https://www.lucagrulla.com

Commands

  • cw ls list all the log groups/log streams within a group
  • cw tail tail a given log group/log stream
    • flags
      • -f, --follow Don't stop when the end of stream is reached, but rather wait for additional data to be appended.
      • -t, --timestamp Print the event timestamp.
      • -s, --stream name Print the log stream name this event belongs to.
      • -g, --grep="" Pattern to filter logs by.

Examples

  • list of the available log groups
    • cw ls groups
  • list of the log streams in a given log group
    • cw ls streams my-log-group
  • tail and follow a given log group/stream
    • cw tail -f my-log-group
    • cw tail -f my-log-group my-log-stream-prefix
    • cw tail -f my-log-group my-log-stream-prefix 2017-01-01T08:10:10 2017-01-01T08:05:00
    • cw tail -f my-log-group \* 9:00 9:01 The use of the * wildchar will let you tail all the log streams in my-log-group.

cw uses the default credentials profile(stored in ./aws/credentials) for authentication and shared config(.aws/config) for identifying the target AWS region.

Time and dates are always treated in UTC.

Installation

On Mac OSX:

  • brew tap lucagrulla/cw
  • brew install cw

Using go tools:

go get github.com/lucagrulla/cw

cw's People

Contributors

lucagrulla avatar tragiclifestories avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.