Skip to main content

ElasticSearch License Update

This provides instructions on how to update ElasticSearch licenses across different environments.

License File

Closer to time of renewal, we should get license files provided by Elastic via email. Email normally contains a link. Follow the link and after agreeing T&C, it will show license file for Production and Non-Production.

License Download Interface

Important: - Prod license should be applied to Prod only - Non-Prod license should be applied to all other environments i.e. Demo, ITHC, Perftest & AAT

Process Overview

License should be applied on each cluster locally as of now. (This can be automated using TF).

Connect to ES Node

You can pick any online node. For detailed connection instructions, see the Deleting Elastic Search Index runbook.

Check Cluster Health

curl -X GET http://localhost:9200/_cluster/health?pretty

Cluster Health Output Example

Check Current License

curl -X GET "localhost:9200/_license?pretty"

License Check Output Example

Take a note of "expiry_date" and this should be updated after applying the new license.

Create License File

Create a file called license.json (you can choose any name, but make sure to use the same name in the following command). Create License file Example

Update License

curl -XPUT -u elkadmin 'http://localhost:9200/_license' -H "Content-Type: application/json" -d @license.json

It will ask for password which can be found in KeyVault under the key "ccd-ELASTIC-SEARCH-PASSWORD". For each environment, KeyVault and password is different.

Update License Example

Verify License Update

Check license again and see if it has extended "expiry_date":

curl -X GET "localhost:9200/_license?pretty"

Verify License Update Example

Troubleshooting

Note: You may need to explicitly disable the below key/pair in elastic config if there are any issues. License file won’t be accepted until all issues are resolved. Config file location is /etc/elasticsearch/elasticsearch.yml and it is managed through Terraform.

xpack.security.enabled: false
This page was last reviewed on 4 November 2025. It needs to be reviewed again on 4 November 2026 by the page owner platops-build-notices .
This page was set to be reviewed before 4 November 2026 by the page owner platops-build-notices. This might mean the content is out of date.