# How to customize the name of the s3 part file

**URL:** <https://discuss.elastic.co/t/how-to-customize-the-name-of-the-s3-part-file/263334>\
**Category:** Logstash\
**Created:** [February 5, 2021, 7:00am UTC](https://discuss.elastic.co/t/how-to-customize-the-name-of-the-s3-part-file/263334 "2021-02-05T07:00:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaushik.vankayala](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@kaushik.vankayala](https://discuss.elastic.co/u/kaushik.vankayala)\
**Post date:** [February 5, 2021, 7:00am UTC](https://discuss.elastic.co/t/how-to-customize-the-name-of-the-s3-part-file/263334/1 "2021-02-05T07:00:33Z")

</div>

Hi There, I use the S3 output plugin for persisting the raw data of our Mulesoft applicaiton.

I have following configuration is my s3 output plugin;

```
output
{	
	s3
	{
		id => "experience_rt4_s3_backup"
		codec => line { format => "%{message}"}
		bucket => "mulesoftlogsuat"
		access_key_id => "AKIAUMTDG2VB7RD3GDNM"
		secret_access_key => "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"
		region => "ap-south-1"
		upload_workers_count => 1
		time_file => 60
		size_file => 104857600
		prefix => "experience-rt4/%{+YYYY}/%{+MMM}/%{+dd}"
	}
}

```

The default names in the s3 bucket is as follows;

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/d/ddbd1641330cd38b985a7e91322a236497d1e727.png)

Is there a way to get the names of the files shorter? Maybe some customization?

My questions points to a similar requirement as below;

> [@Logstash output s3 - file naming](https://discuss.elastic.co/t/logstash-output-s3-file-naming/137302):
>
> Hi, I am trying to output my logstash event to AWS S3. I want to have my own file naming convention instead of the random one generated by logstash with the patter "ls.s3.xxxx". I explored and I dont see any such options available. Can you guys let me know if this is something doabla and a way for it? Thanks

Any help greatly appreciated.

Regards

Kaushik Vankayala

---

<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, 7:00am UTC](https://discuss.elastic.co/t/how-to-customize-the-name-of-the-s3-part-file/263334/2 "2021-03-05T07:00:43Z")

</div>

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