Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In Kubernetes/OpenShift rotated logs have no symbolic link in /var/log/containers and they cannot be retrieved using `oc logs` either, so there is no way to get these rotated logs in a SOS report. This patch proposes extending the `container_log` to make it also capable of retrieving logs from `var/log/pods` using a plugin boolean option called `rotated`. When retrieving the pods directory, all logs will be retrieved from it regardless of size, as it is implicit that the intent is to get all rotated logs. Closes #3677 Signed-off-by: Gorka Eguileor <[email protected]>
- Loading branch information