# Curator current month to date

**URL:** <https://discuss.elastic.co/t/curator-current-month-to-date/73555>\
**Category:** Elasticsearch\
**Created:** [February 1, 2017, 4:53pm UTC](https://discuss.elastic.co/t/curator-current-month-to-date/73555 "2017-02-01T16:53:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crags](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crags/32/15112_2.png) [@crags](https://discuss.elastic.co/u/crags)\
**Post date:** [February 1, 2017, 4:53pm UTC](https://discuss.elastic.co/t/curator-current-month-to-date/73555/1 "2017-02-01T16:53:42Z")

</div>

Hi

Is there a way in Curator I can add an alias to all indices in the current month? So, if say today is 1st Feb (which is it) how would I set up an `alias` action to add an alias of "current\_month" to anything from the first day of the current month?

I've tried:

```auto
add:
      filters:
      - filtertype: pattern
        kind: prefix
        value: event-
        exclude:
      - filtertype: age
        source: name
        direction: younger
        timestring: '%Y.%m.%d'
        unit: months
        unit_count: 0
        exclude:

```

and also `unit_count: 1` but that basically takes everything from a month ago. Is there a way to say "take everything from the 1st of this month to now"?

Many thanks

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 1, 2017, 5:17pm UTC](https://discuss.elastic.co/t/curator-current-month-to-date/73555/2 "2017-02-01T17:17:25Z")

</div>

Not in the way you're requesting, not yet anyway. There is an issue open for that on GitHub: [https://github.com/elastic/curator/issues/733](https://github.com/elastic/curator/issues/733)

---

<div class="post-metadata">

**Author:** ![crags](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crags/32/15112_2.png) [@crags](https://discuss.elastic.co/u/crags)\
**Post date:** [February 1, 2017, 7:13pm UTC](https://discuss.elastic.co/t/curator-current-month-to-date/73555/3 "2017-02-01T19:13:46Z")

</div>

Wow, yes that's perfect - thanks @theuntergeek - and once again for the reply - excellent level of support!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 1, 2017, 7:14pm UTC](https://discuss.elastic.co/t/curator-current-month-to-date/73555/4 "2017-03-01T19:14:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
