# How create raw logstash output file with daily file rollver

**URL:** <https://discuss.elastic.co/t/how-create-raw-logstash-output-file-with-daily-file-rollver/358491>\
**Category:** Logstash\
**Created:** [April 30, 2024, 12:14pm UTC](https://discuss.elastic.co/t/how-create-raw-logstash-output-file-with-daily-file-rollver/358491 "2024-04-30T12:14:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amoghbarve](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@amoghbarve](https://discuss.elastic.co/u/amoghbarve)\
**Post date:** [April 30, 2024, 12:14pm UTC](https://discuss.elastic.co/t/how-create-raw-logstash-output-file-with-daily-file-rollver/358491/1 "2024-04-30T12:14:17Z")

</div>

Hi All  
I have clients file beats who will send me logs to my logstash .  
I want to create raw log file with daily rollover like stdout .  
Kindly help.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![amoghbarve](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@amoghbarve](https://discuss.elastic.co/u/amoghbarve)\
**Post date:** [May 20, 2024, 12:39pm UTC](https://discuss.elastic.co/t/how-create-raw-logstash-output-file-with-daily-file-rollver/358491/2 "2024-05-20T12:39:08Z")

</div>

Hi

Any suggestions

Thanks

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [May 20, 2024, 12:42pm UTC](https://discuss.elastic.co/t/how-create-raw-logstash-output-file-with-daily-file-rollver/358491/3 "2024-05-20T12:42:56Z")

</div>

What have you tried?

This could be done with the `file` [output](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-file.html).

Just use something like this in the output block:

```auto
file {
    path => "/path/to/fileName-%{+YYYY.MM.dd}.json"
}

```

---

<div class="post-metadata">

**Author:** ![amoghbarve](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@amoghbarve](https://discuss.elastic.co/u/amoghbarve)\
**Post date:** [May 24, 2024, 5:44pm UTC](https://discuss.elastic.co/t/how-create-raw-logstash-output-file-with-daily-file-rollver/358491/4 "2024-05-24T17:44:18Z")

</div>

Thanks it works fine
