Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fdataprime%2Flanguage-reference%2Fcommands-reference%2Fsources%2Ftime%2Faround.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fdataprime%2Flanguage-reference%2Fcommands-reference%2Fsources%2Ftime%2Faround.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

# `around`

## Description

The `around` keyword allows users to declare a timerange, defined as some interval before and after a `timestamp`, on which a query should operate.

Note

The `interval`, if specified, **MUST** be positive.

Note

If the `interval` is not specified, then a default value of `30m` is used.

## Syntax

```
source (logs|spans) around <time> [interval <interval>]
```

## Example

The `around` keyword can be used on `logs` or `spans` like so:

### Example query

```
source logs around @'2021-01-01T00:00:00Z' interval 1h

source spans around @'2021-01-01T00:00:00Z' interval 1h
```
