Download full logs from AWS CloudWatch
For idiots like me who just want a text dump of the cloud watch log without going through S3
Because I was working with the .NET AWSSDK when writing this.
Because the AWSSDK.CloudWatchLogs nuget package doesn't support it. (As of writing this README)
If you're still reading this means you want to use this abomination... Good.
short | long | Description |
---|---|---|
-g | --logGroup | The log group you want to select the stream from, can end with '*' in which case the option to choose from all groups starting with this will be given |
-s | --logStream | The log stream you want to save, can end with '*' in which case the option to choose from all groups starting with this will be given |
-o | --outputFile | The file to output the logs to. |
-l | --liveStream | After reaching the newest log keep polling until ctrl+c is pressed |
If any of the above are not specified the program will prompt for them