# Metric Beat stops after few Minutes in AWS EC2 Server

**URL:** <https://discuss.elastic.co/t/metric-beat-stops-after-few-minutes-in-aws-ec2-server/320680>\
**Category:** Beats\
**Tags:** docker, metricbeat\
**Created:** [December 7, 2022, 11:21am UTC](https://discuss.elastic.co/t/metric-beat-stops-after-few-minutes-in-aws-ec2-server/320680 "2022-12-07T11:21:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Umer\_Tahir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/umer_tahir/32/114078_2.png) [@Umer\_Tahir](https://discuss.elastic.co/u/Umer_Tahir)\
**Post date:** [December 7, 2022, 11:21am UTC](https://discuss.elastic.co/t/metric-beat-stops-after-few-minutes-in-aws-ec2-server/320680/1 "2022-12-07T11:21:24Z")

</div>

I have installed Metricbeats on my ECS Docker Instance and I am monitoring logs of Docker from ECS to Elastic Search Kabana Dashboard. There is an issue with the Kabana that whenever I do any release by updating docker images the metricbeat stop giving logs on Kabana. I am unable to figure out what causes the issue.

---

<div class="post-metadata">

**Author:** ![dadiasish](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadiasish/32/114221_2.png) [@dadiasish](https://discuss.elastic.co/u/dadiasish)\
**Post date:** [December 7, 2022, 12:36pm UTC](https://discuss.elastic.co/t/metric-beat-stops-after-few-minutes-in-aws-ec2-server/320680/2 "2022-12-07T12:36:26Z")

</div>

I guess your metricbeat service is not able to restart back again after the update is done.

Is there anything the metricbeat is giving in logs, when it is stopping?

---

<div class="post-metadata">

**Author:** ![Umer\_Tahir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/umer_tahir/32/114078_2.png) [@Umer\_Tahir](https://discuss.elastic.co/u/Umer_Tahir)\
**Post date:** [December 12, 2022, 8:23am UTC](https://discuss.elastic.co/t/metric-beat-stops-after-few-minutes-in-aws-ec2-server/320680/3 "2022-12-12T08:23:42Z")

</div>

I am Unable to find the Logs of metricbeat on Amazon Linux Ec2 Instance. I have installed the metric beat using the following commands:

curl -L -O [https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.11.2-linux-x86\_64.tar.gz](https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.11.2-linux-x86_64.tar.gz)

tar xzvf metricbeat-7.11.2-linux-x86\_64.tar.gz

cd metricbeat-7.11.2-linux-x86\_64

./metricbeat modules enable docker

metricbeat setup -e

/metricbeat -e

Please let me know if there is any issue in the Installation.

---

<div class="post-metadata">

**Author:** ![dadiasish](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadiasish/32/114221_2.png) [@dadiasish](https://discuss.elastic.co/u/dadiasish)\
**Post date:** [December 12, 2022, 8:30am UTC](https://discuss.elastic.co/t/metric-beat-stops-after-few-minutes-in-aws-ec2-server/320680/4 "2022-12-12T08:30:00Z")

</div>

have you enabled logging for your metricbeat?

if not, please add these to your metricbeat.yml and restart the service.

change the path to your respective folder you require logs in... and give necessary permissions to it.

```auto
logging.level: info
logging.to_files: true
logging.files:
  path: /var/log/metricbeat
  name: metricbeat
  keepfiles: 7
  permissions: 0640

```

---

<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:** [January 9, 2023, 8:30am UTC](https://discuss.elastic.co/t/metric-beat-stops-after-few-minutes-in-aws-ec2-server/320680/5 "2023-01-09T08:30:35Z")

</div>

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