- 최신
- 최다 투표
- 가장 많은 댓글
Hi SwordMaster,
You can find example configuration for logFileRegex here https://docs.aws.amazon.com/greengrass/v2/developerguide/log-manager-component.html#log-manager-component-configuration
I believe you should use GreengrassLambdaVSw*.log
. Also only the rotated files like GreengrassLambdaVS_2020_12_15_17_0.log
will be uploaded to CloudWatch. If you currently have one active log file GreengrassLambdaVS.log
, it will not be uploaded until rotation.
Errors of InvalidSequenceTokenException
can happen. As long as log manager retries later and continues uploading logs, I'm not concerned about this error. Can you double check if the log upload resumes with new rotated files?
Thanks,
Hui
Edited by: aws-hui on Mar 23, 2021 12:24 PM
Hi aws-hui,
Do you mean that Logmanager uploads only rotated files to CloudWatch? Will all ComponentName.log files will be ignored until they are rotated and renamed to ComponentName_SOME_DATE.log?
We use this Logmanager component and we can see only events from rotated files for components and greengrass itself. So it appears that it's not possible to have close to real time messages in CloudWatch. It takes hours or days to see them in there.
But the documentation says that default regex matches log files with and without timestamps in their name and we assumed that events from active logs are also uploaded to CloudWatch. Is there any workaround for this? Is it possible to upload events from active log as soon as they appear?
Hi,
Correct, only the already-rotated files will be uploaded. No, there are no workarounds for this as it is intended behavior.
It is on our roadmap to support uploading from the active file.
Cheers,
Michael
Is there a timeline as to when real time logs what the logfileregex configuration setting description implies would happen?
Maybe you could make that more obvious in the documentation that just rotated log files are uploaded. Thanks.
Any updates on the roadmap for seeing the latest logs? This would be very helpful. Thanks a lot.
관련 콘텐츠
- AWS 공식업데이트됨 2년 전