# Logstash Cloudwatch logs collect based on timestamp

**URL:** <https://discuss.elastic.co/t/logstash-cloudwatch-logs-collect-based-on-timestamp/216375>\
**Category:** Logstash\
**Created:** [January 24, 2020, 7:13am UTC](https://discuss.elastic.co/t/logstash-cloudwatch-logs-collect-based-on-timestamp/216375 "2020-01-24T07:13:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajesh\_Somasundaram](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajesh_somasundaram/32/61332_2.png) [@Rajesh\_Somasundaram](https://discuss.elastic.co/u/Rajesh_Somasundaram)\
**Post date:** [January 24, 2020, 7:13am UTC](https://discuss.elastic.co/t/logstash-cloudwatch-logs-collect-based-on-timestamp/216375/1 "2020-01-24T07:13:25Z")

</div>

Hi Team,

We have AWS cloud watch which has 3+ years of logs stored in it. I would like to collect the logs from AWS cloud watch and publish it to elastic search only for the last two weeks data since we really dont analyse the historical entries. Could you please let me know how do we really achieve it?

Thanks,  
Rajesh

---

<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 21, 2020, 7:13am UTC](https://discuss.elastic.co/t/logstash-cloudwatch-logs-collect-based-on-timestamp/216375/2 "2020-02-21T07:13:29Z")

</div>

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