FROM

Syntax
```esql
FROM index_pattern [METADATA fields]
```

Parameters
index_pattern
A list of indices, data streams or aliases. Supports wildcards and date math.
fields
A comma-separated list of metadata fields to retrieve.
DescriptionThe
```esql
FROM source command returns a table with data from a data stream, index,
```

or alias. Each row in the resulting table represents a document. Each column
corresponds to a field, and can be accessed by the name of that field.
By default, an ES|QL query without an explicit LIMIT uses an implicit
limit of 500. This applies to
```esql
FROM too. A FROM command without LIMIT:
```

```esql
FROM employees
```

is executed as:
```esql
FROM employees
| LIMIT 500
```

Examples
```esql
FROM employees
```

You can use date math to refer to indices, aliases
and data streams. This can be useful for time series data, for example to access
today’s index:
```esql
FROM <logs-{now/d}>
```

Use comma-separated lists or wildcards to query multiple data streams, indices,
or aliases:
```esql
FROM employees-00001,other-employees-*
```

Use the METADATA directive to enable metadata fields:
```esql
FROM employees [METADATA _id]
```
