# Selecting per minute single log per hour from elasticsearch

**URL:** <https://discuss.elastic.co/t/selecting-per-minute-single-log-per-hour-from-elasticsearch/69885>\
**Category:** Elasticsearch\
**Created:** [December 23, 2016, 8:17am UTC](https://discuss.elastic.co/t/selecting-per-minute-single-log-per-hour-from-elasticsearch/69885 "2016-12-23T08:17:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![k007](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@k007](https://discuss.elastic.co/u/k007)\
**Post date:** [December 23, 2016, 8:17am UTC](https://discuss.elastic.co/t/selecting-per-minute-single-log-per-hour-from-elasticsearch/69885/1 "2016-12-23T08:17:05Z")

</div>

I am using Elasticsearch to store per seconds logs. I want to keep a backup of these logs for long duration so I want to create other index to store 1 log per minute.

So can anyone please help me how to get per minute logs per hour from Elasticsearch and dump that into new index?

---

<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:** [January 20, 2017, 8:17am UTC](https://discuss.elastic.co/t/selecting-per-minute-single-log-per-hour-from-elasticsearch/69885/2 "2017-01-20T08:17:11Z")

</div>

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