# How to save the data obtained by using the http\_poller input plug-in of logstash to elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-to-save-the-data-obtained-by-using-the-http-poller-input-plug-in-of-logstash-to-elasticsearch/282304>\
**Category:** Logstash\
**Created:** [August 24, 2021, 7:16am UTC](https://discuss.elastic.co/t/how-to-save-the-data-obtained-by-using-the-http-poller-input-plug-in-of-logstash-to-elasticsearch/282304 "2021-08-24T07:16:42Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![zhyp](https://avatars.discourse-cdn.com/v4/letter/z/91b2a8/32.png) [@zhyp](https://discuss.elastic.co/u/zhyp)\
**Post date:** [August 25, 2021, 3:06am UTC](https://discuss.elastic.co/t/how-to-save-the-data-obtained-by-using-the-http-poller-input-plug-in-of-logstash-to-elasticsearch/282304/6 "2021-08-25T03:06:01Z")

</div>

To achieve this summation, I tried using the aggregate filter. However, I can't get the results correctly. Can you help me?

> [@Logstash aggregate filter sum incorrect](https://discuss.elastic.co/t/logstash-aggregate-filter-sum-incorrect/282199):
>
> Hi, slightly_smiling_face Here is my es data.I can query them correctly. {"count":1,"time":"2021-08-10T00:15:00.000+08:00"} {"count":2,"time":"2021-08-10T00:30:00.000+08:00"} I want to sum the count by day. Here are the results I want. {"count":3,"time":"2021-08-10T00:00:00.000+08:00"} Here is the filter configuration.I use version 7.12.0.I refer to the official website example.[Aggregate filter plugin | Logstash Reference [7.12] | Elastic](https://www.elastic.co/guide/en/logstash/7.12/plugins-filters-aggregate.html#plugins-filters-aggregate-example5) filter { ruby { code =\> "event.set('date', e…

---

_[View the full topic](https://discuss.elastic.co/t/how-to-save-the-data-obtained-by-using-the-http-poller-input-plug-in-of-logstash-to-elasticsearch/282304)._
