# Rename logstash.yml

**URL:** <https://discuss.elastic.co/t/rename-logstash-yml/304850>\
**Category:** Logstash\
**Created:** [May 16, 2022, 6:03pm UTC](https://discuss.elastic.co/t/rename-logstash-yml/304850 "2022-05-16T18:03:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_Jacques](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Marc\_Jacques](https://discuss.elastic.co/u/Marc_Jacques)\
**Post date:** [May 16, 2022, 6:03pm UTC](https://discuss.elastic.co/t/rename-logstash-yml/304850/1 "2022-05-16T18:03:58Z")

</div>

Hello Elastic,

is this possible to rename logstash.yml?  
I would like to have something like logstash-name-name.yml

I haven't found anything on the doc or web.

There is a setting directory in startup.options, but no variable to change the name  
I have the version 8.1.3 on RHEL

Thank you

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 16, 2022, 7:17pm UTC](https://discuss.elastic.co/t/rename-logstash-yml/304850/2 "2022-05-16T19:17:34Z")

</div>

> [@Marc\_Jacques](#):
>
> is this possible to rename logstash.yml?

I do not think so. The [code](https://github.com/elastic/logstash/blob/d8e08e9f209dafef8ffcdbc4110925c416505a61/logstash-core/lib/logstash/settings.rb#L188) allows an alternate file name, but I think the filename is only supplied in the specs (test cases), not in logstash itself.

---

<div class="post-metadata">

**Author:** ![Marc\_Jacques](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Marc\_Jacques](https://discuss.elastic.co/u/Marc_Jacques)\
**Post date:** [May 16, 2022, 7:26pm UTC](https://discuss.elastic.co/t/rename-logstash-yml/304850/3 "2022-05-16T19:26:54Z")

</div>

Thanks for the answer

---

<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 13, 2022, 7:27pm UTC](https://discuss.elastic.co/t/rename-logstash-yml/304850/4 "2022-06-13T19:27:37Z")

</div>

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