Last active
April 2, 2019 08:34
-
-
Save ogavrisevs/08f48b78c4d60d7717710f76ebc698c7 to your computer and use it in GitHub Desktop.
AWS Logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws logs describe-log-groups | |
aws logs describe-log-streams --log-group-name "/aws/lambda/c****r" | |
aws logs get-log-events --log-group-name '/aws/lambda/c*****r' --log-stream-name '2019/03/26/[$LATEST]f9b263b35eac4d90b39f4cc0eca6d50a' | |
### Event count | |
aws cloudwatch get-metric-statistics --metric-name IncomingLogEvents --start-time 2019-03-01T00:00:00Z --end-time 2019-03-30T23:59:59Z --period 2592000 --namespace AWS/Logs --statistics SampleCount --region eu-central-1 --dimensions Name=LogGroupName,Value=/aws/lambda/g*****r | |
### Log size | |
aws cloudwatch get-metric-statistics --metric-name IncomingBytes --start-time 2019-03-01T00:00:00Z --end-time 2019-03-30T23:59:59Z --period 2592000 --namespace AWS/Logs --statistics Sum --region eu-central-1 --dimensions Name=LogGroupName,Value=/aws/lambda/g*****r | |
### Metrics Invocations / Errors /Duration | |
aws cloudwatch get-metric-statistics --metric-name Invocations --start-time 2019-03-01T00:00:00Z --end-time 2019-03-30T23:59:59Z --period 2592000 --namespace AWS/Lambda --statistics Sum --region eu-central-1 --dimensions Name=FunctionName,Value=g******r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment