github.com/redhat-appstudio/e2e-tests@v0.0.0-20240520140907-9709f6f59323/tests/load-tests/collect-pod-logs/README.md (about) 1 ## JIRA Task 2 [RHTAP-869](https://issues.redhat.com/browse/RHTAP-869) 3 ## Bash Script Name 4 The bash script is `snapshot-collect-pod-logs.sh` 5 6 7 8 ## Log directory configuration 9 Format: `./snapshot-collect-pod-logs.sh logs-${USER}-$(date +%Y-%m-%d-%H-%M-%S)` 10 If no parameter is given, a default log_dir will be used: `log_dir="logs-${USER}-$(date +%Y-%m-%d-%H-%M-%S)"` 11 ## Script Logic 12 1. The script will run in a continuous loop iterating through all namespaces/pods/containers. 13 2. All log files will be stored under a main log_dir of type `log_dir`. 14 3. For each container log, if not empty: 15 - Existing container log will be removed. 16 - The new log will be stored in the proper hierarchy.