# exo dbaas logs
### Description

This command outputs a Database Service logs.

Supported output template annotations: .FirstLogOffset, .Offset, .Logs
  - .Logs: .Time, .Node, .Unit, .Message

Example usage with custom output containing only the actual log messages:

    exo dbaas logs MY-SERVICE --output-template \
        '{{range $l := .Logs}}{{println $l.Message}}{{end}}'


```
exo dbaas logs NAME [flags]
```

### Options

| Option | Description |
|---------|------------|
|`--help, -h` | help for logs |
|`--limit, -l` | number of log messages to retrieve |
|`--offset, -o` | opaque offset identifier (can be found in the JSON output of the command) |
|`--sort` | log messages sorting order (asc\|desc) |
|`--zone, -z` | Database Service zone |


### Options inherited from parent commands

| Option | Description |
|---------|------------|
|`--config, -C` | Specify an alternate config file [env EXOSCALE_CONFIG] |
|`--output-format, -O` | Output format (table\|json\|text), see &#34;exo output --help&#34; for more information |
|`--output-template` | Template to use if output format is &#34;text&#34; |
|`--quiet, -Q` | Quiet mode (disable non-essential command output) |
|`--timeout` | Per-zone timeout for list operations; -1s disables timeout [env EXOSCALE_TIMEOUT] |
|`--use-account, -A` | Account to use in config file [env EXOSCALE_ACCOUNT] |


### Related Commands

* [dbaas]({{< ref "../dbaas">}})	 - Database as a Service management


