# kraft cloud service logs

Get console output of an service.


```
kraft cloud service logs [FLAG] UUID|NAME
```

### Examples

```
# Get all console output of a service by UUID
$ kraft cloud service logs 77d0316a-fbbe-488d-8618-5bf7a612477a

# Get all console output of a service by name
$ kraft cloud service logs my-service-431342

# Get the last 20 lines of a service by name
$ kraft cloud service logs my-service-431342 --tail 20

# Get the last lines of a service by name continuously
$ kraft cloud service logs my-service-431342 --follow

# Get the last 10 lines of a service by name continuously
$ kraft cloud service logs my-service-431342 --follow --tail 10

```

## Options

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

## Options inherited from parent commands

```
      --allow-insecure   Allow insecure connections to the Unikraft Cloud API
      --metro string     Unikraft Cloud metro location
      --token string     Unikraft Cloud access token
```

## See Also

* [`kraft cloud service`](/docs/cli/kraft/cloud/service): Manage services on KraftCloud

