# How to set output rotating every 15 minutes in logstash?

**URL:** <https://discuss.elastic.co/t/how-to-set-output-rotating-every-15-minutes-in-logstash/175966>\
**Category:** Logstash\
**Created:** [April 9, 2019, 7:13am UTC](https://discuss.elastic.co/t/how-to-set-output-rotating-every-15-minutes-in-logstash/175966 "2019-04-09T07:13:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keep](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@keep](https://discuss.elastic.co/u/keep)\
**Post date:** [April 9, 2019, 7:13am UTC](https://discuss.elastic.co/t/how-to-set-output-rotating-every-15-minutes-in-logstash/175966/1 "2019-04-09T07:13:39Z")

</div>

where are config?  
how to use rotating in logstast?

input {  
.............  
}  
filter {  
.............  
}

output {  
if ([IAM]) {  
file {  
path =\> "/logstash-6.5.1/data/%{+yyyyMMddHH}.log"  
codec =\> line {  
format =\> "LOG\_TYPE|%{LOG\_TYPE}|TIMESTAMP|%{TIMESTAMP}|URL|%{URL}|METHOD|%{METHOD}"  
}  
}  
}  
}

---

<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:** [May 7, 2019, 7:13am UTC](https://discuss.elastic.co/t/how-to-set-output-rotating-every-15-minutes-in-logstash/175966/2 "2019-05-07T07:13:51Z")

</div>

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