Skip to content

Commit

Permalink
Fixed var error
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam committed Oct 21, 2024
1 parent c6ff876 commit 06ffdeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extract_logs_metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ do
# Remove total path
relative_log_path=$(echo $log_path | sed 's/\/var\/log\/clusterlogs\///')
# Upload current logs to s3
aws s3 cp --recursive $log_path s3://metrics.oscar.grycap.net/"${CLUSTER_ID}"/ingresslogs/"${log_relative_path}"
for logfile in "$LOCAL_LOGS_DIR/$log_relative_path/oscar/"*;
aws s3 cp --recursive $log_path s3://metrics.oscar.grycap.net/"${CLUSTER_ID}"/ingresslogs/"${relative_log_path}"
for logfile in "$LOCAL_LOGS_DIR/$relative_log_path/oscar/"*;
do
if [[ $logfile == *".gz" ]]; then
# unzip all log files
Expand Down

0 comments on commit 06ffdeb

Please sign in to comment.