﻿---
title: range_to
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/3028/reference/elasticsearch/curator/fe_range_to
products:
  - Elasticsearch
  - Elasticsearch Curator
---

# range_to
<note>
  This setting is only used with the [period](https://www.elastic.co/elastic/docs-builder/docs/3028/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](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/elasticsearch/curator/fe_range_from) and range_to are counters of whole [units](https://www.elastic.co/elastic/docs-builder/docs/3028/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/3028/reference/elasticsearch/curator/filtertype_period), including examples.