# How to run Metricbeat as a service on SUSE enterprise 11

**URL:** https://discuss.elastic.co/t/how-to-run-metricbeat-as-a-service-on-suse-enterprise-11/201144
**Category:** Beats
**Created:** [September 26, 2019, 6:04am UTC](https://discuss.elastic.co/t/how-to-run-metricbeat-as-a-service-on-suse-enterprise-11/201144 "2019-09-26T06:04:03Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![arun1](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@arun1](https://discuss.elastic.co/u/arun1)
#### Post date: [September 26, 2019, 6:04am UTC](https://discuss.elastic.co/t/how-to-run-metricbeat-as-a-service-on-suse-enterprise-11/201144/1 "2019-09-26T06:04:03Z")

</div>

Hi,

I have installed Meticbeat on SUSE Linux Enterprise 11 using the .rpm package. I am also able to start metricbeat from the command line using the command 'sudo ./metricbeat -e'.  
However when I try to start it as a service using the command 'sudo service metricbeat start', it gives an error saying service metricbeat not found.  
Can you please help with this isssue?

Best Regards,  
Arun

---

<div class="post-metadata">

### Author: ![Michael\_Madden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_madden/32/46640_2.png) [@Michael\_Madden](https://discuss.elastic.co/u/Michael_Madden)
#### Post date: [September 26, 2019, 4:08pm UTC](https://discuss.elastic.co/t/how-to-run-metricbeat-as-a-service-on-suse-enterprise-11/201144/2 "2019-09-26T16:08:10Z")

</div>

Hello,

Thanks for the metricbeat question. Which version of metricbeat are you running? Also which service pack of SLES 11 are you running?

I used the following vagrant box:  
[https://app.vagrantup.com/elastic/boxes/sles-11-x86\_64](https://app.vagrantup.com/elastic/boxes/sles-11-x86_64)

I was able to install metricbeat, but I hit an issue with running the service command. Perhaps this is an issue only on my minimal vagrant box. Do you also have this issue?

```auto
vagrant-sles-11sp4-x64:~ # rpm -q metricbeat
metricbeat-7.3.2-1
vagrant-sles-11sp4-x64:~ # chkconfig --list metricbeat
metricbeat 0:off 1:off 2:off 3:off 4:off 5:off 6:off
vagrant-sles-11sp4-x64:~ # service metricbeat status
/etc/init.d/metricbeat: line 38: /etc/rc.d/init.d/functions: No such file or directory
/etc/init.d/metricbeat: line 42: status: command not found
/etc/init.d/metricbeat: line 88: status: command not found

```

---

<div class="post-metadata">

### Author: ![arun1](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@arun1](https://discuss.elastic.co/u/arun1)
#### Post date: [September 27, 2019, 5:42am UTC](https://discuss.elastic.co/t/how-to-run-metricbeat-as-a-service-on-suse-enterprise-11/201144/3 "2019-09-27T05:42:25Z")

</div>

Hi,

Thanks a lot for the reply. My metricbeat version is metricbeat-7.3.1-x86\_64.  
And yes, I am also getting the exact same error:

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/e/6/e6a7b72e50a43c69571e899b443454d212d03f4b.jpeg)

---

<div class="post-metadata">

### Author: ![bulletprooffool](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bulletprooffool/32/55024_2.png) [@bulletprooffool](https://discuss.elastic.co/u/bulletprooffool)
#### Post date: [September 27, 2019, 1:38pm UTC](https://discuss.elastic.co/t/how-to-run-metricbeat-as-a-service-on-suse-enterprise-11/201144/4 "2019-09-27T13:38:34Z")

</div>

I get the same error - Suse 11 - for Filebeat in my case (assume the same init script though?)

> sethaironfire:/etc/init.d # sudo service filebeat status  
> /etc/init.d/filebeat: line 38: /etc/rc.d/init.d/functions: No such file or directory  
> /etc/init.d/filebeat: line 42: status: command not found  
> /etc/init.d/filebeat: line 88: status: command not found

---

<div class="post-metadata">

### Author: ![Michael\_Madden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_madden/32/46640_2.png) [@Michael\_Madden](https://discuss.elastic.co/u/Michael_Madden)
#### Post date: [September 27, 2019, 4:11pm UTC](https://discuss.elastic.co/t/how-to-run-metricbeat-as-a-service-on-suse-enterprise-11/201144/5 "2019-09-27T16:11:48Z")

</div>

I found a similar issue for openSUSE.

> <https://github.com/elastic/beats/issues/259>

Do you know if SLES 11 supports systemd? I suspect that SLES began supporting systemd in SLES 12 since that is the version of SLES we test/support for beats.

[https://www.elastic.co/support/matrix](https://www.elastic.co/support/matrix)

---

<div class="post-metadata">

### Author: ![bulletprooffool](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bulletprooffool/32/55024_2.png) [@bulletprooffool](https://discuss.elastic.co/u/bulletprooffool)
#### Post date: [September 27, 2019, 4:29pm UTC](https://discuss.elastic.co/t/how-to-run-metricbeat-as-a-service-on-suse-enterprise-11/201144/6 "2019-09-27T16:29:59Z")

</div>

Thanks,

Managed to get it half working using some code from a guy who posted a Suse specific init file.  
If I get it working properly, I’ll feed back

> <https://github.com/elastic/beats/issues/737>

---

<div class="post-metadata">

### Author: ![Michael\_Madden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_madden/32/46640_2.png) [@Michael\_Madden](https://discuss.elastic.co/u/Michael_Madden)
#### Post date: [September 28, 2019, 3:22pm UTC](https://discuss.elastic.co/t/how-to-run-metricbeat-as-a-service-on-suse-enterprise-11/201144/7 "2019-09-28T15:22:28Z")

</div>

That sounds great. Please let us know if you have further questions.

---

<div class="post-metadata">

### Author: ![arun1](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@arun1](https://discuss.elastic.co/u/arun1)
#### Post date: [September 30, 2019, 7:13am UTC](https://discuss.elastic.co/t/how-to-run-metricbeat-as-a-service-on-suse-enterprise-11/201144/8 "2019-09-30T07:13:30Z")

</div>

Thanks a lot. Will wait for your reply 😃

---

<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 28, 2019, 9:13am UTC](https://discuss.elastic.co/t/how-to-run-metricbeat-as-a-service-on-suse-enterprise-11/201144/9 "2019-10-28T09:13:38Z")

</div>

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