Set Up Elasticsearch, Logstash and Kibana (ELK) External Connection

Note

Make sure that the version of the external service matches the version specified in the docker-compose.yml file.

  1. Set up the following parameters for ELK in the .env file:

    ELASTICSEARCH_CONNECTION_STRING=http://external-server:9200 (external-server - IP address or DNS name of the server with Elasticsearch)
    ELASTICSEARCH_INDEX= (index name for TestGear)
    ELASTICSEARCH_LOGS_INDEX= (log index name)
    
  2. In the docker-compose.yml file, comment or delete the sections with ELK, dependencies on other containers (all instances of ELK in the section depends_on), and the volume of the service (elastic-volume) in the volumes list.

  3. Reinstall TestGear:

    docker-compose -f docker-compose.yml --project-name prod up --detach --timeout 120 --remove-orphans