- Newest
- Most votes
- Most comments
You cannot change the rotation time, logs will always rotate once per hour. There is no limit to the number of log files, only to the total size. This size is configurable: https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html#greengrass-nucleus-component-configuration:~:text=Default%3A%201024-,totalLogsSizeKB,-(Optional)%20The%20maximum
Change the fileSizeKB and totalLogsSizeKB to be larger in order to retain more logs.
Cheers,
Michael
Hi Michael, thanks for you quick answer! The problem is that I have modified the file size and the total size:
(Nucleus configuration to merge) { "iotRoleAlias": "GreengrassV2TokenExchangeRoleAlias", "logging": { "level": "INFO", "fileSizeKB": 10240, "totalLogsSizeKB": 102400 }, "interpolateComponentConfiguration": true }
(Nucleus reset paths) [ "/iotRoleAlias", "/logging/level", "/interpolateComponentConfiguration" ]
I just realize now that I might also have to specify the fileSizeKB and totalLogsSizeKB in the reset paths for them to have effect
Relevant content
- Accepted Answerasked a year ago
- asked 2 years ago
- asked 5 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
You do not need to add them to reset since you're merging them. The number of files kept per component will be at most totalLogsSizeKB/fileSizeKB. So increase totalLogsSizeKB if you want to keep more logs.