# I need create logfile every 5 minutes

**URL:** <https://discuss.elastic.co/t/i-need-create-logfile-every-5-minutes/228724>\
**Category:** Logstash\
**Created:** [April 19, 2020, 11:44am UTC](https://discuss.elastic.co/t/i-need-create-logfile-every-5-minutes/228724 "2020-04-19T11:44:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Alfredo\_Gonzale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luis_alfredo_gonzale/32/66611_2.png) [@Luis\_Alfredo\_Gonzale](https://discuss.elastic.co/u/Luis_Alfredo_Gonzale)\
**Post date:** [April 19, 2020, 11:44am UTC](https://discuss.elastic.co/t/i-need-create-logfile-every-5-minutes/228724/1 "2020-04-19T11:44:08Z")

</div>

Hello.

I need to create a logfile every 5 minutes. My settings is generating a log file every minute but i don't know how to set every 5 minutes. It is:

```auto
  file{
              path => "/home/govindo/Escritorio/ftpTest-%{+YYYY-MM-dd_hh:mm}.txt"
             # index => "ftpTest-%{+YYYY-MM-dd_hh:mm}.txt"
           }

```

Thanks for your helping

---

<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 17, 2020, 11:44am UTC](https://discuss.elastic.co/t/i-need-create-logfile-every-5-minutes/228724/2 "2020-05-17T11:44:12Z")

</div>

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