Configuring UForge to Send Logs to Elastic StackΒΆ

It is possible to visualize UForge logs in a dedicated tool: an Elastic Stack server (ElasticSearch, Logstash, Kibana). Elastic Stack centralizes all the logs and offers the possibility to navigate and search through the logs. It allows you to analyze and visualize the logs. If you have an Elastic Stack server installed, you can configure UForge so that UForge logs are sent to your Elastic Stack server.

UForge logs retrieval can be configured as follows:

Note

The following steps need to be done on each node of your platform.

  1. Edit the file /etc/UShareSoft/uforge/uforge.conf. Change the value of FILEBEAT_SERVICE_ENABLED to true.

  2. Edit the file /etc/filebeat/filebeat.yml and put the IP and port of your Elastic Stack server in the section:

    output.logstash:
      hosts: ["#LOGSTASH_HOST_MARKER:#LOGSTASH_PORT_MARKER"]
    

    By default, the Logstash port is 5044 (which may be different in your Logstash installation).

  3. Launch the following script on every node:

    /opt/UShareSoft/uforge/tools/update_scripts/uforge_update.sh
    

Your UForge will now automatically send logs to your Elastic Stack server.

To update the IP or port of the Elastic Stack server, edit the file /etc/filebeat/filebeat.yml. Change the value, and restart filebeat service on every node using the command systemctl restart filebeat.