How to run metricbeat as background process

I want to install metricbeat to monitor server metrics. I dont have internet connection on server so I have manually downloaded "metricbeat-oss-7.3.2-linux-x86_64.tar.gz" and running it through "./metricbeat -e" when I am closing ssh console metricbeat it stopped. Also I have tried "nohup ./metricbeat -e&" but same problem is happening.
How to start metricbeat as background process while working on "metricbeat-oss-7.3.2-linux-x86_64.tar.gz" this file.
Please help me out.

Do you haven't service for metricbeat after installation in /etc/systemd/system/ or /usr/lib/systemd/system/?

I have followed install guide for metricbeat. it does not showing anything regarding service.
Could you please help me, how to create service for metricbeat.

Please check both directories maybe the service already exists.

My service for metricbeat looks like this:
cat /usr/lib/systemd/system/metricbeat.service

Description=Metricbeat is a lightweight shipper for metrics.


Environment="BEAT_CONFIG_OPTS=-c /etc/metricbeat/metricbeat.yml"
Environment="BEAT_PATH_OPTS=-path.home /usr/share/metricbeat -path.config /etc/metricbeat /var/lib/metricbeat -path.logs /var/log/metricbeat"
ExecStart=/usr/share/metricbeat/bin/metricbeat $BEAT_LOG_OPTS $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS


curl -L -O
tar xzvf metricbeat-7.3.2-darwin-x86_64.tar.gz
cd metricbeat-7.3.2-darwin-x86_64/

--Modify metricbeat.yml to set the connection information

--Enable system module
./metricbeat modules enable system

./metricbeat setup
./metricbeat -e

I have followed this steps. After this steps there is no metricbeat.service in /usr/lib/systemd/system or /etc/systemd/system

What kind of OS do you have?

Red Hat Enterprise Linux Server release 7.7 (Maipo)

Are you able install service from rpm? Can you download rpm?

And install like this:
rpm -ivh service.rpm?

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