# How to pull logs with specific date range from aws cloudwatch logs

**URL:** <https://discuss.elastic.co/t/how-to-pull-logs-with-specific-date-range-from-aws-cloudwatch-logs/113893>\
**Category:** Logstash\
**Created:** [January 3, 2018, 9:02am UTC](https://discuss.elastic.co/t/how-to-pull-logs-with-specific-date-range-from-aws-cloudwatch-logs/113893 "2018-01-03T09:02:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwesinhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shwesinhan/32/78663_2.png) [@shwesinhan](https://discuss.elastic.co/u/shwesinhan)\
**Post date:** [January 3, 2018, 9:02am UTC](https://discuss.elastic.co/t/how-to-pull-logs-with-specific-date-range-from-aws-cloudwatch-logs/113893/1 "2018-01-03T09:02:20Z")

</div>

hi there!

1 ) i would like to pull the logs with specific date range or specific log from aws cloudwatch logs.

for eg:

i have 1-20 days logs.  
but i want to pull 3-9 days logs via logstash server.

is that possible?

2 ) i would like to pull the logs with former count from aws cloudwatch logs.

for eg:

i have 70,000 log events at aws cloudwatch logs.  
but i want to pull former 15,000 log events only via logstash server.  
is that possible?

---

<div class="post-metadata">

**Author:** ![shwesinhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shwesinhan/32/78663_2.png) [@shwesinhan](https://discuss.elastic.co/u/shwesinhan)\
**Post date:** [January 4, 2018, 7:56am UTC](https://discuss.elastic.co/t/how-to-pull-logs-with-specific-date-range-from-aws-cloudwatch-logs/113893/2 "2018-01-04T07:56:28Z")

</div>

hi everyone!

i found `start_position=> sec` option for cloudwatch log input plugin  
as far as i know , not possible to pull the logs specific date range eg. 2017-12-05 ~ 2017-12-09

if other way have, do let me know

---

<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 1, 2018, 7:56am UTC](https://discuss.elastic.co/t/how-to-pull-logs-with-specific-date-range-from-aws-cloudwatch-logs/113893/3 "2018-02-01T07:56:31Z")

</div>

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