# Time\_file field of S3 ouptut plugin

**URL:** <https://discuss.elastic.co/t/time-file-field-of-s3-ouptut-plugin/182502>\
**Category:** Logstash\
**Created:** [May 23, 2019, 6:22pm UTC](https://discuss.elastic.co/t/time-file-field-of-s3-ouptut-plugin/182502 "2019-05-23T18:22:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mudit\_Mehta1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mudit_mehta1/32/45353_2.png) [@Mudit\_Mehta1](https://discuss.elastic.co/u/Mudit_Mehta1)\
**Post date:** [May 23, 2019, 6:22pm UTC](https://discuss.elastic.co/t/time-file-field-of-s3-ouptut-plugin/182502/1 "2019-05-23T18:22:01Z")

</div>

I am using S3 output plugin for logstash version 7.0.1 to ship logs to S3 bucket. I set up a docker container running logstash. But the plugin is creating objects in S3 after 15-20 mins delay. Is this because of the time\_field field. When i changed it to 1. Then they started coming up in 1 min.  
What does this time\_file field signify ?  
and one more question the prefix field of the plugin lets to give the folder structure, but the file format is added by the plugin. Can i add a custom file name ?

---

<div class="post-metadata">

**Author:** ![jpcarey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpcarey/32/46668_2.png) [@jpcarey](https://discuss.elastic.co/u/jpcarey)\
**Post date:** [May 23, 2019, 10:35pm UTC](https://discuss.elastic.co/t/time-file-field-of-s3-ouptut-plugin/182502/2 "2019-05-23T22:35:36Z")

</div>

> S3 outputs create temporary files into the OS' temporary directory, you can specify where to save them using the `temporary_directory` option.

> **[S3 output plugin | Logstash Reference \[7.0\] | Elastic](https://www.elastic.co/guide/en/logstash/7.0/plugins-outputs-s3.html#plugins-outputs-s3-rotation_strategy)**

It is going to write to a local temp file, and upon either reaching the size or time limit it will rotate to a new local temp file and upload the previous file to s3.

---

<div class="post-metadata">

**Author:** ![Mudit\_Mehta1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mudit_mehta1/32/45353_2.png) [@Mudit\_Mehta1](https://discuss.elastic.co/u/Mudit_Mehta1)\
**Post date:** [May 24, 2019, 6:44am UTC](https://discuss.elastic.co/t/time-file-field-of-s3-ouptut-plugin/182502/3 "2019-05-24T06:44:36Z")

</div>

thanks @jpcarey. But `temporary_directory` is used to specify the directory structure, i want to have custom file name instead of the default file format i.e `ls.s3.312bc026-2f5d-49bc-ae9f-5940cf4ad9a6.2013-04-18T10.00.tag_hello.part0.txt` provided by the plugin

And i also want to ask what does time\_file field signifies ?

---

<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:** [June 21, 2019, 6:44am UTC](https://discuss.elastic.co/t/time-file-field-of-s3-ouptut-plugin/182502/4 "2019-06-21T06:44:38Z")

</div>

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