sparse-intern-71089
06/16/2022, 2:54 PMbillowy-army-68599
full-receptionist-30203
06/16/2022, 3:16 PMfull-receptionist-30203
06/16/2022, 3:57 PMfull-receptionist-30203
06/16/2022, 4:00 PMI0616 11:52:05.979792 51862 operations_aws.go:194] [getLogs] Error getting logs: /aws/lambda/test_lambda-dev-lambda ResourceNotFoundException: The specified log group does not exist.
But using awslogs it return correctly:
awslogs get /aws/lambda/test_lambda-dev-lambda --profile pace:thomas
/aws/lambda/test_lambda-dev-lambda 2022/06/16/[$LATEST]8c9656284fa34e669eaf3d41a3c131b2 START RequestId: 49515921-849a-4de7-accd-323aa0c06e1a Version: $LATEST
/aws/lambda/test_lambda-dev-lambda 2022/06/16/[$LATEST]8c9656284fa34e669eaf3d41a3c131b2 END RequestId: 49515921-849a-4de7-accd-323aa0c06e1a
(...)
full-receptionist-30203
06/16/2022, 4:01 PMbillowy-army-68599
awslogs
?full-receptionist-30203
06/16/2022, 4:06 PMfull-receptionist-30203
06/16/2022, 4:06 PMbillowy-army-68599
aws logs describe-log-groups
? I think this is because the log group is autonamed and you're not specifying the suffixfull-receptionist-30203
06/16/2022, 4:27 PMfull-receptionist-30203
06/16/2022, 4:28 PM{
"logGroupName": "/aws/lambda/test_lambda-dev-lambda",
"creationTime": 1655394675393,
"metricFilterCount": 0,
"arn": "arn:aws:logs:us-east-1:<account>:log-group:/aws/lambda/test_lambda-dev-lambda:*",
"storedBytes": 0
},
{
"logGroupName": "/aws/lambda/test_lambda-dev-lambda-0c9c4ad",
"creationTime": 1655394658950,
"retentionInDays": 7,
"metricFilterCount": 0,
"arn": "arn:aws:logs:us-east-1:<account>:log-group:/aws/lambda/test_lambda-dev-lambda-0c9c4ad:*",
"storedBytes": 0
},
full-receptionist-30203
06/16/2022, 4:29 PMfull-receptionist-30203
06/16/2022, 9:21 PMbillowy-army-68599
full-receptionist-30203
06/16/2022, 9:40 PM