# Support Needed on Metricbeat setup issue

**URL:** <https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 3, 2019, 6:56am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748 "2019-01-03T06:56:38Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [January 7, 2019, 8:47am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/21 "2019-01-07T08:47:52Z")

</div>

I realized my Logstash 's log having some errors, referring to some Permission denied errors to these files in /var/lob/logstash/ ..... but when I do ls command, I cant really see the files within it, even with root account?

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [January 7, 2019, 9:16am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/22 "2019-01-07T09:16:38Z")

</div>

> [@skyluke.1987](#):
>
> I realized my Logstash 's log having some errors, referring to some Permission denied errors

Can you please paste some error log and check the file with below command:

```auto
ls -lah

```

Thanks.

---

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [January 8, 2019, 3:15am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/23 "2019-01-08T03:15:46Z")

</div>

Hi, so far no error when I run the command.

![image](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e45127b92d0053d37585c716d1e5c03b5597cd94.png)

---

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [January 8, 2019, 8:39am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/24 "2019-01-08T08:39:26Z")

</div>

I realized the service is not running:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/3/e3c4e8266609cb1f3676348851536c6d09669d7f.png)

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [January 14, 2019, 12:13pm UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/25 "2019-01-14T12:13:03Z")

</div>

@skyluke.1987,

is your problem fixed or still your metricbeat service is showing not running?

Thanks.

---

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [January 16, 2019, 7:21am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/26 "2019-01-16T07:21:19Z")

</div>

Hi @Tek_Chand, I am able to start the service without much error. But when I went to check the service status, it shows me the errors above in my previous comment. "Failed to start Matricbeat is a lightweight shipper for metrics...."

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [January 16, 2019, 7:26am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/27 "2019-01-16T07:26:57Z")

</div>

@skyluke.1987,

Can you please check the error log in `/var/log/metricbeat/metricbeat` or `/var/log/syslog` if you are using ubuntu machine else check in another file according to your OS.

Logs can be useful to fix the issue.

Thanks.

---

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [January 17, 2019, 1:44am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/28 "2019-01-17T01:44:20Z")

</div>

In the log, I do see this error. So is it that I need to enable the settings under elasticsearch.yml configuration file?  
Exiting: Template loading requested but the Elasticsearch output is not configured/enabled

---

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [January 21, 2019, 7:34am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/29 "2019-01-21T07:34:43Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/d/c/dc53ef0d1a66d8e756eae555d3177d0835b877cd.png)

Hi all, may i know what is causing this issue? Kindly assist thanks

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [January 21, 2019, 10:55am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/30 "2019-01-21T10:55:23Z")

</div>

@skyluke.1987,

> [@skyluke.1987](#):
>
> Template loading requested but the Elasticsearch output is not configured/enabled

To setup metricbeat you need to enable the elasticsearch output once in your metricbeat.yml file.

You need to enable the logstash output as well at same time then run the below commands:

```auto
metricbeat setup -e \
  -E output.logstash.enabled=false \
  -E output.elasticsearch.hosts=['your_elasticsearch_server_ip:9200'] \
  -E setup.kibana.host=your_kibana_server_ip:5601

```

It will fix your issue.

Thanks.

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [January 21, 2019, 11:52am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/31 "2019-01-21T11:52:54Z")

</div>

@skyluke.1987,

You need to enable kibana setup as well so filebeat dashboard can be loaded.

```auto
setup.kibana:

  # Kibana Host
  # Scheme and port can be left out and will be set to the default (http and 5601)
  # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  host: "your_kibana_server_IP:5601"

```

Thanks.

---

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [January 22, 2019, 3:40am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/32 "2019-01-22T03:40:46Z")

</div>

Thanks, I have manage to run the Metricbeat service already. Thanks

---

<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:** [February 19, 2019, 3:40am UTC](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748/33 "2019-02-19T03:40:53Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/support-needed-on-metricbeat-setup-issue/162748.md?page=1)
