- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
Contenus pertinents
- demandé il y a un an
- demandé il y a 10 mois
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
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.