# Timezone in UTC causes wrong filename

**URL:** https://discuss.elastic.co/t/timezone-in-utc-causes-wrong-filename/261480
**Category:** Logstash
**Created:** [January 19, 2021, 12:37am UTC](https://discuss.elastic.co/t/timezone-in-utc-causes-wrong-filename/261480 "2021-01-19T00:37:23Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)
#### Post date: [January 19, 2021, 12:43am UTC](https://discuss.elastic.co/t/timezone-in-utc-causes-wrong-filename/261480/2 "2021-01-19T00:43:17Z")

</div>

Have you searched?

> [@How to change logstash default timezone](https://discuss.elastic.co/t/how-to-change-logstash-default-timezone/157304):
>
> Hello, In my system, I use filebeat and logstash. The data written to the log files are sent to logstash via filebeat. Some fields in the logs are filtered and saved in csv format using logstash. Problem: When saving data in CSV files I need to save data belongs to each day in sperate files. So my "output" is as follows. output { csv { path =\> "/var/csv\_reports/%{+YYYY}-%{+MM}-%{+dd}/transaction-report.csv" fields =\> ["timestamp","tid","api","user","application","app\_id", "body"…

> [@Time in IST for log-rotation - Logstash](https://discuss.elastic.co/t/time-in-ist-for-log-rotation-logstash/211612):
>
> I have configured file-beat on all the App servers and Logstash in a centralized server for the log rotation. The config file in Log rotation is input { beats { port =\> 5044 } } filter{ mutate { remove\_field =\> ["agent","input","host","architecture","containerized","mac","os","@version","log","ecs","offset"] } } output { file { path =\> "/log/sync/ims-v1/%{+dd-MM-yyyy}/%{+HH}-ims.log" } } -- In OUTPUT: Logstash to create a file/directory depending on an hourly basis for the logs: b…

[And many more](https://www.google.com/search?q=logstash+path+timezone&rlz=1C1EJFC_enAU891AU891&oq=logstash+path+timezone&aqs=chrome..69i57.13334j1j4&sourceid=chrome&ie=UTF-8)...

---

_[View the full topic](https://discuss.elastic.co/t/timezone-in-utc-causes-wrong-filename/261480)._
