# display datasink

The `display datasink` command displays data from a data sink.

The `outage_windows` option displays the windows where event outages were detected.

The `bad_events` option displays events that failed to meet the data-sink constraints.

## Syntax

{% code overflow="wrap" %}

```
display datasink <datasink name>[,sql_clause=<SQL clause>,limit=<number of rows>]
display datasink <datasink name>,outage_windows
display datasink <datasink name>,bad_events[,sql_clause=<SQL clause>,limit=<number of rows>]
```

{% endcode %}

## Parameters

| Parameter          | Description                                                     |
| ------------------ | --------------------------------------------------------------- |
| `<datasink name>`  | The name of the data sink                                       |
| `<SQL clause>`     | A SQL WHERE clause, usually on a timestamp column               |
| `<number of rows>` | The number of rows to display. Defaults to 10 if not specified. |

## Example

{% code overflow="wrap" %}

```
display datasink trip_datasink
```

{% endcode %}
