# Identify the specific terms that are present in last n consecutive days

**URL:** <https://discuss.elastic.co/t/identify-the-specific-terms-that-are-present-in-last-n-consecutive-days/114476>\
**Category:** Kibana\
**Created:** [January 8, 2018, 9:11am UTC](https://discuss.elastic.co/t/identify-the-specific-terms-that-are-present-in-last-n-consecutive-days/114476 "2018-01-08T09:11:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gowd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gowd/32/42180_2.png) [@Gowd](https://discuss.elastic.co/u/Gowd)\
**Post date:** [January 8, 2018, 9:11am UTC](https://discuss.elastic.co/t/identify-the-specific-terms-that-are-present-in-last-n-consecutive-days/114476/1 "2018-01-08T09:11:30Z")

</div>

I want to create a data table visualisation that will list down the specific terms that are present in last n consecutive days. How can I do this with Kibana query/visualisations?

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [January 8, 2018, 3:12pm UTC](https://discuss.elastic.co/t/identify-the-specific-terms-that-are-present-in-last-n-consecutive-days/114476/2 "2018-01-08T15:12:37Z")

</div>

Hi @Gowd,

if you want to visualize all of the terms that are present in documents with timestamps within any of the last N days, a `Terms` aggregation in combination with the date range filter would be the way to go. I can't think of any way to only show those terms that are present in all of the last N days. This would require complex script pipeline aggregations, which the UI currently doesn't 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:** [February 5, 2018, 3:13pm UTC](https://discuss.elastic.co/t/identify-the-specific-terms-that-are-present-in-last-n-consecutive-days/114476/3 "2018-02-05T15:13:12Z")

</div>

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