# How to read the rotated logs by logstash

**URL:** https://discuss.elastic.co/t/how-to-read-the-rotated-logs-by-logstash/61203
**Category:** Logstash
**Created:** [September 22, 2016, 6:09am UTC](https://discuss.elastic.co/t/how-to-read-the-rotated-logs-by-logstash/61203 "2016-09-22T06:09:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vk126y](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@vk126y](https://discuss.elastic.co/u/vk126y)
#### Post date: [September 22, 2016, 6:09am UTC](https://discuss.elastic.co/t/how-to-read-the-rotated-logs-by-logstash/61203/1 "2016-09-22T06:09:49Z")

</div>

I have a logstash configuration to read the log files as follow.

file {  
type =\> "serverlog"  
path =\> ["////guvctapfil03.bravurasolutions.local//LOG\_DIR//server.log"]  
start\_position =\> "beginning"   
}

Now at 00:00:00 AM every morning my server.log is renamed to server.log.1 and new file named server.logn is created and it seems my logstash is not reading the server.log.

Am i missing something in my configuration or how should we handle this log rotation under logstash configuration.

I am using logstash-2.3.4

Regards  
Vinay Kumar

---

<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: [July 6, 2017, 4:37am UTC](https://discuss.elastic.co/t/how-to-read-the-rotated-logs-by-logstash/61203/2 "2017-07-06T04:37:28Z")

</div>


