Skip to content

Commit

Permalink
README: Add k8s cmd to retrieve log archive
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Upadhyay <kushupad@amazon.com>
  • Loading branch information
koooosh committed May 28, 2024
1 parent c4b17dd commit 8ff175c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,13 @@ ssh -i YOUR_KEY_FILE \
"cat /.bottlerocket/support/bottlerocket-logs.tar.gz" > bottlerocket-logs.tar.gz
```

Or, if you are running Kubernetes, you can retrieve the file wihout using SSH like:

```shell
kubectl get --raw \
"/api/v1/nodes/NODE_NAME/proxy/logs/support/bottlerocket-logs.tar.gz" > bottlerocket-logs.tar.gz
```

(If your instance isn't accessible through SSH, you can use [SSH over SSM](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-enable-ssh-connections.html).)

For a list of what is collected, see the logdog [command list](sources/logdog/src/log_request.rs).
Expand Down

0 comments on commit 8ff175c

Please sign in to comment.