# Changing file path name every five minutes in output plugin

**URL:** <https://discuss.elastic.co/t/changing-file-path-name-every-five-minutes-in-output-plugin/263383>\
**Category:** Logstash\
**Created:** [February 5, 2021, 12:47pm UTC](https://discuss.elastic.co/t/changing-file-path-name-every-five-minutes-in-output-plugin/263383 "2021-02-05T12:47:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ritusingh](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@ritusingh](https://discuss.elastic.co/u/ritusingh)\
**Post date:** [February 5, 2021, 12:47pm UTC](https://discuss.elastic.co/t/changing-file-path-name-every-five-minutes-in-output-plugin/263383/1 "2021-02-05T12:47:37Z")

</div>

Hi,  
My requirement is my file name should change every 5 minutes . Currently I am using below configuration to change it every minute. Please tell me some way to change it every 5 minute.

```auto
output {
	stdout { codec => rubydebug }
  csv {
    # elastic field name
    fields => ["@timestamp","requestid","ngnix.responsebytes"]
	
    # This is path where we store output.   
    path => "C:/Users/M1056317/ELK/csv/try6/csv-export-%{+YYYY-MM-dd_hh.mm}.csv"
		
  } 
}

```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 5, 2021, 4:36pm UTC](https://discuss.elastic.co/t/changing-file-path-name-every-five-minutes-in-output-plugin/263383/2 "2021-02-05T16:36:01Z")

</div>

> [@ritusingh](#):
>
> Please tell me some way to change it every 5 minute.

I do not think logstash can support that.

---

<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:** [March 5, 2021, 4:36pm UTC](https://discuss.elastic.co/t/changing-file-path-name-every-five-minutes-in-output-plugin/263383/3 "2021-03-05T16:36:54Z")

</div>

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