# Exiting: error loading config file: stat metricbeat.yml: no such file or directory

**URL:** <https://discuss.elastic.co/t/exiting-error-loading-config-file-stat-metricbeat-yml-no-such-file-or-directory/268015>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 22, 2021, 8:26pm UTC](https://discuss.elastic.co/t/exiting-error-loading-config-file-stat-metricbeat-yml-no-such-file-or-directory/268015 "2021-03-22T20:26:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jude\_Lindale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jude_lindale/32/85916_2.png) [@Jude\_Lindale](https://discuss.elastic.co/u/Jude_Lindale)\
**Post date:** [March 22, 2021, 8:26pm UTC](https://discuss.elastic.co/t/exiting-error-loading-config-file-stat-metricbeat-yml-no-such-file-or-directory/268015/1 "2021-03-22T20:26:13Z")

</div>

So I was having problems with metricbeat so I uninstalled it and the reinstalled metricbeat-7.11.2-amd64.deb and when I got to configure it in /etc/metricbeat the metricbeat.yml config file is not there.

Please help.

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [March 23, 2021, 9:00am UTC](https://discuss.elastic.co/t/exiting-error-loading-config-file-stat-metricbeat-yml-no-such-file-or-directory/268015/2 "2021-03-23T09:00:00Z")

</div>

Hi!

Just installed Metricbeat on Debian VM on GCP (following the [docs](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-installation-configuration.html)) and I'm able to see the configuration file:

```auto
curl -L -O https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.11.2-amd64.deb
sudo dpkg -i metricbeat-7.11.2-amd64.deb
sudo cat /etc/metricbeat/metricbeat.yml
......

```

VM info:

```auto
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster

```

---

<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 20, 2021, 11:00am UTC](https://discuss.elastic.co/t/exiting-error-loading-config-file-stat-metricbeat-yml-no-such-file-or-directory/268015/3 "2021-04-20T11:00:15Z")

</div>

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