# Could this be a bug? Not CRLF but LF is used in metricbeat.yml of Windows package

**URL:** <https://discuss.elastic.co/t/could-this-be-a-bug-not-crlf-but-lf-is-used-in-metricbeat-yml-of-windows-package/150809>\
**Category:** Beats\
**Created:** [October 3, 2018, 3:26am UTC](https://discuss.elastic.co/t/could-this-be-a-bug-not-crlf-but-lf-is-used-in-metricbeat-yml-of-windows-package/150809 "2018-10-03T03:26:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sakurai-youhei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sakurai-youhei/32/36829_2.png) [@sakurai-youhei](https://discuss.elastic.co/u/sakurai-youhei)\
**Post date:** [October 3, 2018, 3:26am UTC](https://discuss.elastic.co/t/could-this-be-a-bug-not-crlf-but-lf-is-used-in-metricbeat-yml-of-windows-package/150809/1 "2018-10-03T03:26:36Z")

</div>

Hello,

Because GitHub issue template suggests questioning here first, I'm opening this topic.

Would anyone please authorize this is worth being recorded to GitHub issue as a bug or at least a valuable feature request?

Thanks.

**Issue**

Builtin notepad is useless when modifying `metricbeat.yml` due to `LF` usage there, i.e. Configuration of metricbeat requires 3rd-party text editor (e.g. notepad++) on Windows.

**Conditions**

- Windows 10
- Metricbeat 6.4.2 [WINDOWS 64-BIT](https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-6.4.2-windows-x86_64.zip)

**Exact steps**

1. Follow [Installation guide](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-installation.html).
2. Open `C:\Program Files\Metricbeat\metricbeat.yml` using notepad.

**Current result**

I can't modify the `metricbeat.yml` because all lines are wrapped into one line.

**Expected result**

I can modify the `metricbeat.yml`.

**Code to look at**

I'm not familiar with golang but it'd be probably possible to insert LF-to-CRLF conversion into [windowsModulesDir](https://github.com/elastic/beats/blob/v6.4.2/metricbeat/magefile.go#L117) and [windowsReferenceConfig](https://github.com/elastic/beats/blob/v6.4.2/metricbeat/magefile.go#L131).

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [October 3, 2018, 7:34am UTC](https://discuss.elastic.co/t/could-this-be-a-bug-not-crlf-but-lf-is-used-in-metricbeat-yml-of-windows-package/150809/2 "2018-10-03T07:34:12Z")

</div>

Indeed, it's a fair request. Please go ahead an open an issue on Github: [https://github.com/elastic/beats/issues/new](https://github.com/elastic/beats/issues/new)

I assume this problem effects all of the Beats.

---

<div class="post-metadata">

**Author:** ![sakurai-youhei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sakurai-youhei/32/36829_2.png) [@sakurai-youhei](https://discuss.elastic.co/u/sakurai-youhei)\
**Post date:** [October 3, 2018, 8:23am UTC](https://discuss.elastic.co/t/could-this-be-a-bug-not-crlf-but-lf-is-used-in-metricbeat-yml-of-windows-package/150809/3 "2018-10-03T08:23:22Z")

</div>

Thank you! I posted this [HERE](https://github.com/elastic/beats/issues/8544).

---

<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:** [October 31, 2018, 10:23am UTC](https://discuss.elastic.co/t/could-this-be-a-bug-not-crlf-but-lf-is-used-in-metricbeat-yml-of-windows-package/150809/4 "2018-10-31T10:23:26Z")

</div>

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