# Using logstash to automatically generate log files

**URL:** <https://discuss.elastic.co/t/using-logstash-to-automatically-generate-log-files/70104>\
**Category:** Logstash\
**Created:** [December 28, 2016, 5:40am UTC](https://discuss.elastic.co/t/using-logstash-to-automatically-generate-log-files/70104 "2016-12-28T05:40:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielwalker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielwalker/32/14396_2.png) [@danielwalker](https://discuss.elastic.co/u/danielwalker)\
**Post date:** [December 28, 2016, 5:40am UTC](https://discuss.elastic.co/t/using-logstash-to-automatically-generate-log-files/70104/1 "2016-12-28T05:40:24Z")

</div>

I am now using one server for logstash for generating and keeping log files based on yyyy-MM-dd.log format, without sending log data to elasticsearch, as we want to use our customized scripts to analyze the logs files.

But here comes a problem, that those log file names are generated based on UTC, we don’t want this way. We want those log files generated and automatically spliced in Beijing time, saved on our server.

How can I do that with configuring logstash settings?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 28, 2016, 6:07am UTC](https://discuss.elastic.co/t/using-logstash-to-automatically-generate-log-files/70104/2 "2016-12-28T06:07:36Z")

</div>

You can't, it works in UTC.

---

<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:** [January 25, 2017, 6:08am UTC](https://discuss.elastic.co/t/using-logstash-to-automatically-generate-log-files/70104/3 "2017-01-25T06:08:06Z")

</div>

Closed on January 25, 2017, 6:08am UTC

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