# Aggregation of log time-series - median per minute?

**URL:** <https://discuss.elastic.co/t/aggregation-of-log-time-series-median-per-minute/44587>\
**Category:** Logstash\
**Created:** [March 16, 2016, 4:08pm UTC](https://discuss.elastic.co/t/aggregation-of-log-time-series-median-per-minute/44587 "2016-03-16T16:08:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marius](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@marius](https://discuss.elastic.co/u/marius)\
**Post date:** [March 16, 2016, 4:08pm UTC](https://discuss.elastic.co/t/aggregation-of-log-time-series-median-per-minute/44587/1 "2016-03-16T16:08:32Z")

</div>

Hi,

I am facing the problem that I have high throughput JSON logs. I don't want to store the logs with that accuracy, but the sender is not configurable.

I wonder if Logstash can do something for me to calculate the median of all logs per minute on a chosen field. And instead of forwarding all the Logs to Elasticsearch, it could write one log-line per minute.

Is there any times series aggregation in Logstash for that?

Best,  
Marius

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 19, 2016, 2:45pm UTC](https://discuss.elastic.co/t/aggregation-of-log-time-series-median-per-minute/44587/2 "2016-03-19T14:45:07Z")

</div>

Would the [aggregate filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-aggregate.html) be helpful?

---

<div class="post-metadata">

**Author:** ![marius](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@marius](https://discuss.elastic.co/u/marius)\
**Post date:** [March 20, 2016, 8:19am UTC](https://discuss.elastic.co/t/aggregation-of-log-time-series-median-per-minute/44587/3 "2016-03-20T08:19:39Z")

</div>

Absolutely... I just did not find this in my google searches (wrong terms I guess). Thank you very much.

---

<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 6, 2017, 5:06am UTC](https://discuss.elastic.co/t/aggregation-of-log-time-series-median-per-minute/44587/4 "2017-07-06T05:06:14Z")

</div>

Closed on July 6, 2017, 5:06am UTC


