{"action":"opened","issue":{"url":"https://api.github.com/repos/firstandthird/cwl/issues/1","repository_url":"https://api.github.com/repos/firstandthird/cwl","labels_url":"https://api.github.com/repos/firstandthird/cwl/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/firstandthird/cwl/issues/1/comments","events_url":"https://api.github.com/repos/firstandthird/cwl/issues/1/events","html_url":"https://github.com/firstandthird/cwl/issues/1","id":143314941,"number":1,"title":"specs","user":{"login":"jgallen23","id":27936,"avatar_url":"https://avatars.githubusercontent.com/u/27936?v=3","gravatar_id":"","url":"https://api.github.com/users/jgallen23","html_url":"https://github.com/jgallen23","followers_url":"https://api.github.com/users/jgallen23/followers","following_url":"https://api.github.com/users/jgallen23/following{/other_user}","gists_url":"https://api.github.com/users/jgallen23/gists{/gist_id}","starred_url":"https://api.github.com/users/jgallen23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgallen23/subscriptions","organizations_url":"https://api.github.com/users/jgallen23/orgs","repos_url":"https://api.github.com/users/jgallen23/repos","events_url":"https://api.github.com/users/jgallen23/events{/privacy}","received_events_url":"https://api.github.com/users/jgallen23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-24T17:48:37Z","updated_at":"2016-03-24T17:48:37Z","closed_at":null,"body":"want to create a simple lib that makes dealing with cloudwatch logs easier.  We have this https://github.com/firstandthird/cwltail for tailing logs, but I also want to do searches, filters, etc. 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.\r\n\r\n//cc @ecwillis @orthagonal \r\n\r\n## Commands\r\n\r\n`cwl groups` - list cloudwatch log groups\r\n`cwl streams [groupname]` - list streams\r\n`cwl tail [groupname] [?streamname]` - grab the last 10 mins of logs and then fetch every few seconds - pull in from cwltail\r\n`cwl search [groupname] [query]` - search group of logs for a specific query. need to figure out how to include streamname too.\r\n`cwl metric [groupname] [filtername]` - get the metric filter query and then do a search "}}