﻿---
title: range_from
description: range_from and range_to are counters of whole units. A negative number indicates a whole unit in the past, while a positive number indicates a whole unit...
url: https://www.elastic.co/elastic/docs-builder/docs/2666/reference/elasticsearch/curator/fe_range_from
products:
  - Elasticsearch
  - Elasticsearch Curator
---

# range_from
<note>
  This setting is only used with the [period](https://www.elastic.co/elastic/docs-builder/docs/2666/reference/elasticsearch/curator/filtertype_period) filtertype
</note>

```yaml
 - filtertype: period
   source: name
   range_from: -1
   range_to: -1
   timestring: '%Y.%m.%d'
   unit: days
```

`range_from` and [`range_to`](https://www.elastic.co/elastic/docs-builder/docs/2666/reference/elasticsearch/curator/fe_range_to) are counters of whole [units](https://www.elastic.co/elastic/docs-builder/docs/2666/reference/elasticsearch/curator/fe_unit). A negative number indicates a whole unit in the past, while a positive number indicates a whole unit in the future. A `0` indicates the present unit.
Read more about this setting in context in the [period filtertype documentation](https://www.elastic.co/elastic/docs-builder/docs/2666/reference/elasticsearch/curator/filtertype_period), including examples.