Versions Compared

Key

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

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

...

3. Open the command prompt as administrator and go to {directory}/\elasticsearch-8.6.2/\bin path.

4. Run ES with the elasticsearch.bat command.
5. When you run ES in a terminal for the first time, you get a password on the terminal as below. You must note down the password for future reference.

...

6. Execute the below given CURL 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"
                    ]
                }
            ]
        }
    }
}'

...

8. The <apiKey> would be base64 encoding of id:api_key i.e. base64 encoding of o3PG-n0Bf9efLymhVjzN:eR9bKD5OTeywOxovC7It2Q. You can use online utility (Base64 Encode and Decode - Online) for base64 encoding.
9. Install the Zephyr application.

...