Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section explains the installation and testing configuration of Elasticsearch (ES) in Windows.

...

  1. Execute the below given CURL to generate an API key:

    Code Block
    curl --location --request POST 'https://localhost:9200/_security/api_key' \
    --header 'Authorization: Basic ZWxhc3RpYzpwYXNzd29yZA==' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "name": "my-api-key",
        "role_descriptors": {
            "role-zephyr": {
                "cluster": [
                    "all"
                ],
                "index": [
                    {
                        "names": [
                            "zephyr-*"
                        ],
                        "privileges": [
                            "all"
                        ]
                    }
                ]
            }
        }
    }'
  2. Refer to the generated API key response:

    Code Block
    {
        "id": "i_n-KIgBbJC5TV1xKsjr",
        "name": "my-api-key",
        "api_key": "oSkuars1Rh-m4diuKe18hw",
        "encoded": "aV9uLUtJZ0JiSkM1VFYxeEtzanI6b1NrdWFyczFSaC1tNGRpdUtlMThodw=="
    }
  3. The <apiKey> would be base64 encoding of id:api_key i.e. base64 encoding of o3PG-n0Bf9efLymhVjzN:eR9bKD5OTeywOxovC7It2Q. Youcan use online utility (Base64 Encode and Decode - Online) for base64 encoding.

  4. Install the Zephyr application.

  5. Upon successful Zephyr installation, stop the Zephyr and navigate to the {ZephyrDir}/tomcat/webapps/flex/WEB-INF/classes location.

  6. Make changes as mentioned in the below steps, to the

    jdbc.properties for ES running on HTTPS.

    Add following properties in jdbc.properties file:

    Code Block
    elastic.rest.prop.api.key.id=<id>
    elastic.rest.prop.api.key.secret=<api_key>
  7. Start the Zephyr service.

...