Hello!
Our application stores logs on a file in a pod. We have the following support-bundle.yaml:
apiVersion: troubleshoot.replicated.com/v1beta1
kind: Collector
metadata:
name: collector-sample
spec:
collectors:
- clusterInfo: {}
- clusterResources: {}
- logs:
collectorName: app-logs
name: app/logs
selector:
- component=comp
- copy:
name: pod-logs
selector:
- app=workers
containerPath: /var/www/html/storage/logs/laravel.log
The problem is, this file is most of the time constantly changed, so often, when we try to generate a bundle, we can’t get that file and instead we get this one file called “laravel.log-errors.json” with the following contents:
{
“/var/www/html/storage/logs/laravel.log/error”: “failed to stream command output: command terminated with exit code 1”,
“/var/www/html/storage/logs/laravel.log/stderr”: “tar: laravel.log: file changed as we read it\n”
}
Any recommendations on what to do in this case?