# File output extension

**URL:** https://discuss.elastic.co/t/file-output-extension/270940
**Category:** Beats
**Tags:** packetbeat
**Created:** [April 22, 2021, 9:35am UTC](https://discuss.elastic.co/t/file-output-extension/270940 "2021-04-22T09:35:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hilt86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hilt86/32/20308_2.png) [@hilt86](https://discuss.elastic.co/u/hilt86)
#### Post date: [April 22, 2021, 9:35am UTC](https://discuss.elastic.co/t/file-output-extension/270940/1 "2021-04-22T09:35:03Z")

</div>

Is there a way to control the extension of the files created in the file output?

I want to be able to name the files packetbeat.1.json for example rather than the default packetbeat.1 etc

Also is it possible to use the normal patterns such as packetbeat-%{yyyy} etc?

---

<div class="post-metadata">

### Author: ![hilt86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hilt86/32/20308_2.png) [@hilt86](https://discuss.elastic.co/u/hilt86)
#### Post date: [April 30, 2021, 2:43am UTC](https://discuss.elastic.co/t/file-output-extension/270940/2 "2021-04-30T02:43:04Z")

</div>

Can anyone from Elastic comment on this please?

---

<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: [May 28, 2021, 4:43am UTC](https://discuss.elastic.co/t/file-output-extension/270940/3 "2021-05-28T04:43:13Z")

</div>

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