We are unable to start/stop/ manage metricbeat on Oracle Linux 6.5 version. We have to manually start service using
metricbeat -e -c /etc/metricbeat/metricbeat.yml
Below is what we see when we start metricbeat using service command. Any help on this.
[ log]$ sudo service metricbeat start
Starting metricbeat: 2020-06-22T06:01:52.657-0500 INFO instance/beat.go:621 Home path: [/usr/share/metricbeat] Config path: [/etc/metricbeat] Data path: [/var/lib/metricbeat] Logs path: [/var/log/metricbeat]
2020-06-22T06:01:52.657-0500 INFO instance/beat.go:629 Beat ID: 0cdd4c9a-4dda-4b30-b5db-d5e4f32f1c50
2020-06-22T06:01:52.663-0500 INFO [beat] instance/beat.go:957 Beat info {"system_info": {"beat": {"path": {"config": "/etc/metricbeat", "data": "/var/lib/metricbeat", "home": "/usr/share/metricbeat", "logs": "/var/log/metricbeat"}, "type": "metricbeat", "uuid": "0cdd4c9a-4dda-4b30-b5db-d5e4f32f1c50"}}}
2020-06-22T06:01:52.663-0500 INFO [beat] instance/beat.go:966 Build info {"system_info": {"build": {"commit": "5e69e25b920e3d93bec76a09a31da3ab35a55607", "libbeat": "7.7.0", "time": "2020-05-12T00:57:24.000Z", "version": "7.7.0"}}}
2020-06-22T06:01:52.663-0500 INFO [beat] instance/beat.go:969 Go runtime info {"system_info": {"go": {"os":"linux","arch":"amd64","max_procs":32,"version":"go1.13.9"}}}
2020-06-22T06:01:52.667-0500 INFO [beat] instance/beat.go:973 Host info {"system_info": {"host": {"architecture":"x86_64","boot_time":"2020-05-07T00:43:14-05:00","containerized":false,"name":"edge03","ip":["127.0.0.1/8","IP2/16","IP3/24"],"kernel_version":"2.6.32-754.27.1.el6.x86_64","mac":["bc:30:5b:f2:49:f8","bc:30:5b:f2:49:f8","a0:36:9f:ac:32:74","a0:39:9f:ac:32:74","a0:36:9f:10:28:40","a0:36:9f:10:28:42","bc:30:5b:f2:49:fc","bc:30:5b:f2:49:fd","a0:36:9f:ac:32:74","bc:30:5b:f2:49:f8"],"os":{"family":"","platform":"ol","name":"Oracle Linux Server","version":"6.5","major":6,"minor":5,"patch":0},"timezone":"CDT","timezone_offset_sec":-18000,"id":"e25012148f4d07f90ac70ced00000014"}}}
2020-06-22T06:01:52.668-0500 INFO [beat] instance/beat.go:1002 Process info {"system_info": {"process": {"capabilities": {"inheritable":null,"permitted":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63"],"effective":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63"],"bounding":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63"],"ambient":null}, "cwd": "/", "exe": "/usr/share/metricbeat/bin/metricbeat", "name": "metricbeat", "pid": 43979, "ppid": 43978, "seccomp": {"mode":""}, "start_time": "2020-06-22T06:01:51.940-0500"}}}
2020-06-22T06:01:52.668-0500 INFO instance/beat.go:297 Setup Beat: metricbeat; Version: 7.7.0
2020-06-22T06:01:52.668-0500 INFO [index-management] idxmgmt/std.go:182 Set output.elasticsearch.index to 'metricbeat-hadoop-7.7.0' as ILM is enabled.
2020-06-22T06:01:52.670-0500 INFO eslegclient/connection.go:84 elasticsearch url: https://plels101:9200
2020-06-22T06:01:52.670-0500 INFO eslegclient/connection.go:84 elasticsearch url: https://plels102:9200
2020-06-22T06:01:52.670-0500 INFO eslegclient/connection.go:84 elasticsearch url: https://plels103:9200
2020-06-22T06:01:52.671-0500 INFO [publisher] pipeline/module.go:110 Beat name: edge03
Config OK
[ OK ]
[ log]$ sudo service metricbeat status
metricbeat-god is stopped