How to save the data obtained by using the http_poller input plug-in of logstash to elasticsearch?

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