I would like to ask you a question about the behavior of Lambda on AWS.
This is the person who asked me a question on stackoverflow a while ago. (https://www.tutorialfor.com/go.php?id=303166 )
I am currently using Route53 on AWS, collecting query logs with CloudWatch Logs, running a program using python with lambda on a regular basis, and transferring query logs from CloudWatch Logs to S3.
It's a little related to what I asked you last time, but on Lambda
client = boto3.client ('logs')
response = client.create_export_task (
I have a question about the behavior when I execute.
I'm currently running this function at 0:10 every day and set the timeout to 30 seconds.
The execution log of the function is also saved in CloudWatch Logs, and if you check that, you can see that the duration is about 15 seconds at the longest, so it is operating stably.
However, if you check the save time of S3, there are some that are saved at 0:13 etc. if it is slow.
I'd like to ask, "Why does it happen that the function is saved in S3 after it finishes executing?"
My perception was that the transfer from CloudWatch Logs to S3 was taking place while the Lambda function was running. Therefore, I think it is impossible that the save time recorded in S3 is outside the execution time.
Is this perception wrong?
I don't know how Lambda works, so it may be a question that doesn't make sense, but if you have any details, please answer.
Answer # 1
My perception was that the transfer from CloudWatch Logs to S3 was taking place while the Lambda function was running.
I don't think this fits the content below. Since the create start task is like an asynchronous call, it is likely that the export is not finished at that moment even if the call is successful.
This is an asynchronous call. If all the required information is provided, this operation initiates an export task and responds with the ID of the task. After the task has started, you can use DescribeExportTasks to get the status of the export task. can only have one active (RUNNING or PENDING) export task at a time. To cancel an export task, use CancelExportTask.
- amazon s3 - about scanning s3
- amazon ec2 - about security group settings when uploading ftp between ec2
- aws - about vpc uptime
- about lambda expression java
- aws - about rails app ci to aws
- c ++ - about the behavior of the program when inserting the first value into the binary search tree
- aws - about aws monthly charges
- html5 - question about the behavior of normal video tags (whether it will be streamed)
- python - about the difference in behavior between sort and sorted
- aws - about incurring charges in the aws free usage frame
- html - about the behavior of ie and chrome when the file name is changed after selecting the file with
- about amazon linux2 mysql installation
- amazon ec2 - about access restriction by aws ec2 proxy server
- amazon ec2 - about iam role
- about list behavior in python
- [java] about listresourcebundle runtime error
- java - about run-time errors
- amazon s3 - launch aws lambda triggered by file download from s3 bucket
- python - transferring query logs from aws cloudwatch logs to s3
- amazon s3 - data mart construction using glue in aws environment
- amazon s3 - can't upload application with aws cli in lambda tutorial
- amazon s3 - aws ses bounce, countermeasures after detecting complaint email
- amazon s3 - i want to automatically register csv files dropped in s3 in rds
- amazon s3 - access s3 using lambda (python)
- amazon s3 - i want to save csv file to s3 using lambda