Install Elastic Search on a Dedicated Server

Install Elastic Search on a Dedicated Server

Procedure

  1. On the server machine on which you want to install Elastic Search, access the GE Digital APM distribution package, and then navigate to the folder 3rd_Party_Software\ElasticSearch.
  2. Extract the contents of the file elasticsearch-5.3.0.zip to the folder C:\ElasticSearch.
  3. In the extracted files, navigate to the folder C:\ElasticSearch\elasticsearch-5.3.0\elasticsearch-5.3.0\config, and then access the file elasticsearch.yml.
  4. In the elasticsearch.yml file, uncomment the following properties and modify the values to match those shown here.
    cluster.name: apm-cluster
    node.name: ${COMPUTERNAME}
    path.data: /ProgramData/Meridium/ElasticSearch
    path.logs: /ProgramData/Meridium/Logs
    bootstrap.memory_lock: true
    network.host: 0.0.0.0
    http.port: 9200
    action.destructive_requires_name: true
  5. Save and close the elasticsearch.yml file.
  6. Select the Windows Start button, then navigate to and right-click Command Prompt, and then select Run as administrator.
    A command prompt window appears.
  7. In the command prompt window, enter cd C:\ElasticSearch\elasticsearch-5.3.0\bin
  8. In the command prompt window, enter elasticsearch-service install
    Elastic Search is installed.
  9. Access the Services console (services.msc), and then test and modify the following Elastic Search properties:
    • Verify that the service runs as Local System.
    • Modify the startup to be Automatic.
    • Start the service to verify installation and configuration.
  10. On the Elastic Server machine, ensure that Elastic Search is running by navigating to http://localhost:9200/ in your preferred web browser.
    You should receive a response similar to the following:
    {
    "name" : "apm-node",
    "cluster_name" : "apm-cluster",
    "cluster_uuid" : "58cS6NyzQJOLZ8Xr1e3vkg",
    "version" : {
    "number" : "5.3.0",
    "build_hash" : "3adb13b",
    "build_date" : "2017-03-23T03:31:50.652Z",
    "build_snapshot" : false,
    "lucene_version" : "6.4.1"
    },
  11. On the GE Digital APM Server machine, ensure that Elastic Search is running by navigating to http://[elastic-search-server]:9200/ in your preferred web browser.
    You should receive a response similar to that seen in the previous step.
  12. On the GE Digital APM Server machine, navigate to C:\ProgramData\Meridium, and then edit the file MeridiumAppSettings.xml
  13. In the file MeridiumAppSettings.xml, modify the following values as needed:
    <!-- Search and Elastic Services -->
    <add key="searchServiceUrl" value="http://localhost:9199" />
    <add key="elasticServiceUrl" value="http://<name of Elastic Search server>:9200" />
  14. On the GE Digital APM Server, restart the following services:
    • Meridium Search Service
    • Redis service
    • Reset IIS (optional)