Skip to content

Commit

Permalink
Fixed path error
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam committed Oct 14, 2024
1 parent db3e215 commit c33a9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extract_goaccess_metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ do
if [[ $log_path == *"oscar_oscar"* ]]; then
cp -r $log_path $LOCAL_LOGS_DIR
# remove total path
log_relative_path=$(echo $log | sed 's/\/var\/log\/clusterlogs\///')
log_relative_path=$(echo $log_path | sed 's/\/var\/log\/clusterlogs\///')
# upload a backup of the 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/"*;
Expand Down

0 comments on commit c33a9f6

Please sign in to comment.