Metricbeat failed to start on linux

I can's start metricbeat service on linux. I'm following the guides on https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-starting.html
But when starting metricbeat, it shows following error:

$ sudo service metricbeat start
Starting metricbeat (via systemctl):                       [  OK  ]
$ sudo service metricbeat status
● metricbeat.service - metricbeat
   Loaded: loaded (/usr/lib/systemd/system/metricbeat.service; disabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Tue 2018-04-10 10:13:47 WIB; 2s ago
     Docs: https://www.elastic.co/guide/en/beats/metricbeat/current/index.html
  Process: 2512 ExecStart=/usr/share/metricbeat/bin/metricbeat -c /etc/metricbeat/metricbeat.yml -path.home /usr/share/metricbeat -path.config /etc/metricbeat -path.data /var/lib/metricbeat -path.logs /var/log/metricbeat (code=exited, status=1/FAILURE)
 Main PID: 2512 (code=exited, status=1/FAILURE)

Apr 10 10:13:47 consul3.xyz.co.id systemd[1]: metricbeat.service: main proce...E
Apr 10 10:13:47 consul3.xyz.co.id systemd[1]: Unit metricbeat.service entere....
Apr 10 10:13:47 consul3.xyz.co.id systemd[1]: metricbeat.service failed.
Apr 10 10:13:47 consul3.xyz.co.id systemd[1]: metricbeat.service holdoff tim....
Apr 10 10:13:47 consul3.xyz.co.id systemd[1]: start request repeated too qui...e
Apr 10 10:13:47 consul3.xyz.co.id systemd[1]: Failed to start metricbeat.
Apr 10 10:13:47 consul3.xyz.co.id systemd[1]: Unit metricbeat.service entere....
Apr 10 10:13:47 consul3.xyz.co.id systemd[1]: metricbeat.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

This is my metricbeat.yml

metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false

setup.template.settings:
  index.number_of_shards: 1
  index.codec: best_compression

metricbeat.modules:
- module: system
  metricsets:
    - cpu
    - filesystem
    - memory
    - network
    - process
    - uptime
  enabled: true
  period: 10s
  processes: ['.*']
  cpu_ticks: false

setup.kibana:
  host: "172.16.16.109:5601"

output.elasticsearch:
  hosts: ["172.16.16.109:9200"]

I can't find any error log on /etc/metricbeat. Maybe this is also related to file permission? I'm using debian 9

$ ls -altr
total 328
-rw-r--r--.   1 root root  47612 Mar 13 16:56 metricbeat.reference.yml
-rw-r--r--.   1 root root 254722 Mar 13 16:56 fields.yml
drwxr-xr-x. 166 root root  12288 Apr 10 09:48 ..
drwxr-xr-x.   3 root root     95 Apr 10 09:48 .
drwxr-xr-x.   2 root root   4096 Apr 10 09:48 modules.d
-rwxrwxrwx.   1 root root   5539 Apr 10 10:10 metricbeat.yml

Elasticsearch & Kibana using version 6.2.2, while metricbeat on 6.2.3, but I don't think that is the problem

Thank you

False alarm.... found the cause after do
$ sudo journalctl -u metricbeat

2 Likes

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