Skip to content

kraft cloud instance logs

Get console output of an instance.

kraft cloud instance logs [FLAG] UUID|NAME

Examples

# Get all console output of a kraftcloud instance by UUID
$ kraft cloud instance logs 77d0316a-fbbe-488d-8618-5bf7a612477a
# Get all console output of a kraftcloud instance by name
$ kraft cloud instance logs my-instance-431342
# Get the last 20 lines of a kraftcloud instance by name
$ kraft cloud instance logs my-instance-431342 --tail 20
# Get the last lines of a kraftcloud instance by name continuously
$ kraft cloud instance logs my-instance-431342 --follow
# Get the last 10 lines of a kraftcloud instance by name continuously
$ kraft cloud instance logs my-instance-431342 --follow --tail 10

Options

-f, --follow Follow the logs of the instance every half second
-h, --help help for logs
--no-prefix When logging multiple machines, do not prefix each log line with the name
-p, --prefix string Prefix the logs with a given string
-n, --tail int Show the last given lines from the logs (default -1)

Options inherited from parent commands

--metro string Set the KraftCloud metro
--token string Set the KraftCloud token

Aliases

The kraft cloud instance logs command can also be run as:

log

See Also