# Tags from dates

**URL:** <https://discuss.elastic.co/t/tags-from-dates/184371>\
**Category:** Beats\
**Created:** [June 5, 2019, 1:47pm UTC](https://discuss.elastic.co/t/tags-from-dates/184371 "2019-06-05T13:47:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thdesy](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@thdesy](https://discuss.elastic.co/u/thdesy)\
**Post date:** [June 5, 2019, 1:47pm UTC](https://discuss.elastic.co/t/tags-from-dates/184371/1 "2019-06-05T13:47:25Z")

</div>

Hi all,

I would like to tag on a shipper transactions with additional dates, so I tried to run the beat with

`tags: ["foo", "baz", "%{+yyyy}","%{yyyy.MM}","%{yyyy.MM.dd}",]`

assuming that the variables are evaluated. However, the actual shipped tags are literally the strings `"%{+yyyy}"` 😔

Maybe somebody has an idea for me, what is failing here for me?

Cheers and thanks,  
Thomas

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [June 10, 2019, 4:36pm UTC](https://discuss.elastic.co/t/tags-from-dates/184371/2 "2019-06-10T16:36:55Z")

</div>

This is not supported by `tags` for the `add_tags` processor. You could probably do this with an Ingest Node processor and the script processor. But maybe using a range query on `@timestamp` to find those events like `@timestamp>2019-01-01 and @timestamp<=2019-01-31` would be better.

---

<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:** [July 8, 2019, 6:52pm UTC](https://discuss.elastic.co/t/tags-from-dates/184371/3 "2019-07-08T18:52:04Z")

</div>

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