kennu / cwtail Goto Github PK
View Code? Open in Web Editor NEWCloudWatch Logs Tail
CloudWatch Logs Tail
I'm not sure why your code is reading the ~/.aws/config
ini file and trying to ascertain the region from there. The SDK will automatically determine the region based on a series of fallbacks. I have deployments in multiple regions, and I can't use cwtail
in multiple regions without having different profiles just for the sake of having a different region value.
Could you remove lines 169-180 and just allow the SDK to do its own automatic region detection?
Excellent tool!
In elastic beanstalk apps, there are usually several log streams, and sometimes it's useful to tail all of them at once.
For example:
/aws/elasticbeanstalk/appname/var/log/eb-activity.log
/aws/elasticbeanstalk/appname/var/log/httpd/access_log
/aws/elasticbeanstalk/appname/var/log/httpd/error_log
In this case, it would be adventageous to be able to tail with a syntax like:
cwtail -f /aws/elasticbeanstalk/appname/*
Just a suggestion. Wish I could help implement it myself, but I am still very unfamiliar with Node. Will jump in as I learn more though, if I'm able.
I just submitted a PR that refactored a lot and rewrote some #15. I use (my fork of) cwtail all over and wanted to see if you'd be interested in a maintainer?
Installed with npm install -g cwtail
When running cwtail -l
I get:
TypeError: Cannot promisify an API that has normal methods with 'Async'-suffix
See http://goo.gl/MqrFmX
at checkValid (C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\node_modules\bluebird\js\release\promisify.js:54:27)
at promisifiableMethods (C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\node_modules\bluebird\js\release\promisify.js:77:5)
at promisifyAll (C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\node_modules\bluebird\js\release\promisify.js:241:9)
at Function.Promise.promisifyAll (C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\node_modules\bluebird\js\release\promisify.js:311:12)
at C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\index.js:192:13
at tryCatcher (C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromiseCtx (C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\node_modules\bluebird\js\release\promise.js:606:10)
at _drainQueueStep (C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\node_modules\bluebird\js\release\async.js:142:12)
at _drainQueue (C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\node_modules\bluebird\js\release\async.js:131:9)
at Async._drainQueues (C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\node_modules\bluebird\js\release\async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\arik\AppData\Roaming\npm\node_modules\cwtail\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
Looks like some kind of a (version) incompatibility with the bluebird module. Any idea how to resolve?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.