# Extend file output plugin

**URL:** <https://discuss.elastic.co/t/extend-file-output-plugin/194861>\
**Category:** Logstash\
**Created:** [August 12, 2019, 2:24pm UTC](https://discuss.elastic.co/t/extend-file-output-plugin/194861 "2019-08-12T14:24:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nitin\_Gupta3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nitin_gupta3/32/52113_2.png) [@Nitin\_Gupta3](https://discuss.elastic.co/u/Nitin_Gupta3)\
**Post date:** [August 12, 2019, 2:24pm UTC](https://discuss.elastic.co/t/extend-file-output-plugin/194861/1 "2019-08-12T14:24:00Z")

</div>

Hi,

I want to customise file output plugin such that it sorts the chunks according to a field before writing them. I'm looking for extending the existing file plugin rather than duplicating its code, but facing issues in initialisation of the extended plugin.  
Are there any examples to refer for extending file output plugin?

---

<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:** [September 9, 2019, 2:24pm UTC](https://discuss.elastic.co/t/extend-file-output-plugin/194861/2 "2019-09-09T14:24:02Z")

</div>

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