Elasticsearch Remote Connection Configuration

Follow these steps for Elasticsearch remote connection configurations.
Prerequisite:
Elasticsearch, JDK
TIP:
Unhide the hidden files. In the View menu, select the [Hidden items] checkbox. The hidden files display.
Hidden Files
  1. Open the Windows Service management console and stop the Elasticsearch service.
  2. Open the Elasticsearch
    config
    folder. The default config file location is
    C:\ProgramData\Elastic\Elasticsearch\config\elasticsearch.yml
  3. Open the
    elasticsearch.yml
    file in a text editor.
    Elasticsearch Config Folder
  4. In
    elasticsearch.yml
    file, edit the cluster name and add additional parameters.
    1. Ensure that the cluster name is unique and is updated properly:
      cluster.name: FTAESCluster
    2. Add the following lines to the end of the
      elasticsearch.yml
      file and update the hostname:
      xpack.ml.enabled: false discovery.seed_hosts: ["<hostname>"] cluster.initial_master_nodes: ["<nodename>"]
    TIP:
    If the user would like to add a backup file, add the following line to the end of the
    elasticsearch.yml
    file:
    path.repo: "C:\\work\\my_backup"
    User must also create a folder in the path specified above. This is an optional step and is not necessary. Also, if user needs to use IP address to access Elasticsearch, add the following line at the end of the
    elasticsearch.yml
    file:
    network.host: <hostname>
    Add Parameters
  5. Save the
    elasticsearch.yml
    file once the changes have been made.
  6. Open the Windows Service management console.
  7. Start Elasticsearch service.
    Start Elasticsearch Service
    Elasticsearch is now configured.
    NOTE:
    It is recommended to always use the HTTP port to access Elasticsearch in browser.
  8. Open a Web browser and type: http://<Hostname>:9200/?pretty.
    Verify Elasticsearch
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.