# How to add system.hostfs definition into the yml files

**URL:** <https://discuss.elastic.co/t/how-to-add-system-hostfs-definition-into-the-yml-files/225047>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 25, 2020, 7:00pm UTC](https://discuss.elastic.co/t/how-to-add-system-hostfs-definition-into-the-yml-files/225047 "2020-03-25T19:00:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![micas](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@micas](https://discuss.elastic.co/u/micas)\
**Post date:** [March 25, 2020, 7:00pm UTC](https://discuss.elastic.co/t/how-to-add-system-hostfs-definition-into-the-yml-files/225047/1 "2020-03-25T19:00:56Z")

</div>

According to [https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-docker.html](https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-docker.html) i need to pass on docker containers the "-e -system.hostfs=/hostfs" however is there any way that i can add that to either the system.yml i have on the modules.d folder or to the metricbeat.yml? for my use case it would be ideal.

What would be the correct key to add to those yml if so? i have tried

**on metricbeat.yml:**  
system.hostfs: /hostfs

**on system.yml (on modules.d folder):**  
- module: system  
hostfs: /host

Yet none of them seem to work

---

<div class="post-metadata">

**Author:** ![Alex\_Kristiansen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_kristiansen/32/46086_2.png) [@Alex\_Kristiansen](https://discuss.elastic.co/u/Alex_Kristiansen)\
**Post date:** [March 30, 2020, 4:59pm UTC](https://discuss.elastic.co/t/how-to-add-system-hostfs-definition-into-the-yml-files/225047/2 "2020-03-30T16:59:34Z")

</div>

@micas,

Unfortunately, right now you can only specify `hostfs` via the command line.

---

<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:** [April 27, 2020, 4:59pm UTC](https://discuss.elastic.co/t/how-to-add-system-hostfs-definition-into-the-yml-files/225047/3 "2020-04-27T16:59:47Z")

</div>

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