Skip to content

Commit

Permalink
copy folder over not individual files
Browse files Browse the repository at this point in the history
  • Loading branch information
hughesjj committed Feb 5, 2025
1 parent d35626e commit c9201fa
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ else
fi
while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do
# Copy logs from container
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r -i ~/.orca/id_rsa "splunk@$ip_addr:/opt/splunk/var/log/splunk/otel.log" "$TEST_FOLDER/otel.log"
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r -i ~/.orca/id_rsa "splunk@$ip_addr:/opt/splunk/var/log/splunk/Splunk_TA_otel.log" "$TEST_FOLDER/Splunk_TA_otel.log"
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r -i ~/.orca/id_rsa "splunk@$ip_addr:/opt/splunk/var/log/splunk/" "$TEST_FOLDER"
if grep -q "Starting otel agent" "$TEST_FOLDER/Splunk_TA_otel.log" &&
grep -q "Everything is ready" "$TEST_FOLDER/otel.log"; then
break
Expand Down

0 comments on commit c9201fa

Please sign in to comment.