GithubHelp home page GithubHelp logo

cwl's Introduction

cwl

AWS Cloudwatch Logs CLI tool

'cwl -h' for help

cwl's People

Contributors

orthagonal avatar jgallen23 avatar

Stargazers

Josh Goldsmith avatar

Watchers

Troy Whiteley avatar  avatar Eric Willis avatar James Cloos avatar  avatar  avatar

Forkers

isabella232

cwl's Issues

search command issue

it looks like we are doing the filter on our side instead of passing the filter to AWS. we should use the FilterLogEvents.

specs

want to create a simple lib that makes dealing with cloudwatch logs easier. We have this https://github.com/firstandthird/cwltail for tailing logs and https://github.com/firstandthird/aws-cli-utils/blob/master/lib/logs.js we had previously. So we create a single helper tool to handle that. I'm thinking we should list out the commands and what they do before we get going.

//cc @ecwillis @orthagonal

Commands

  • cwl groups - list cloudwatch log groups
  • cwl streams [groupname] - list streams
  • cwl tail [groupname] [?streamname] - grab the last 10 mins of logs and then fetch every few seconds - pull in from cwltail
  • help messaging if running cwl by itself
  • make it work with env.AWS_ACCESS_KEY_ID and env.AWS_SECRET_ACCESS_KEY
  • cwl search [groupname] [query] - search group of logs for a specific query. need to figure out how to include streamname too.
  • cwl metric [groupname] [filtername] - get the metric filter query and then do a search
  • cwl cleanup [groupname] [days] - remove streams that haven't had logs in the last X days

Features

  • option to pretty print output - use purdy to pretty print if json. would be nice to color code nginx/apache logs

logs command

paginate through all logs starting from newest to oldest. Maybe show last 50 logs and then have enter key show the next 50

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.