Before you begin
All the following commands have to be executed with super-user privileges.
Note: You cannot run Elasticsearch as the root user. Elasticseach is part of the Talend Log Server, therefore you cannot run the start_logserver.sh file as root user.
Create the service file with the following command:
Assign the relevant rights to the file you created:
chmod 664 /etc/systemd/system/Talend-LogServer.service
Paste the following content in the file while adapting it to your
[Unit] Description=Talend Log Server Service After=network.target [Service] WorkingDirectory=<LogServerPath> ExecStart=/bin/bash start_logserver.sh ExecStop=/bin/bash stop_logserver.sh Type=simple [Install] WantedBy=default.target
Reload the service daemon:
Start the service:
systemctl start Talend-LogServer.service
Filebeat is automatically installed and started as a service.