Issue coming when trying to active trial

HI,

below is my elastic cluster -

{
"name" : "myappserver2",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "RK_4iG_2TYqjuVy-1pmb9Q",
"version" : {
"number" : "8.6.1",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "180c9830da956993e59e2cd70eb32b5e383ea42c",
"build_date" : "2023-01-24T21:35:11.506992272Z",
"build_snapshot" : false,
"lucene_version" : "9.4.2",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}

I am running command to activate trial..
curl -X POST "localhost:9200/_license/start_trial?acknowledge=true&pretty"

but i am getting this error-
{
"error": {
"root_cause": [
{
"type": "security_exception",
"reason": "missing authentication credentials for REST request [/_license/start_trial?acknowledge=true&pretty]",
"header": {
"WWW-Authenticate": [
"Basic realm="security" charset="UTF-8"",
"ApiKey"
]
}
}
],
"type": "security_exception",
"reason": "missing authentication credentials for REST request [/_license/start_trial?acknowledge=true&pretty]",
"header": {
"WWW-Authenticate": [
"Basic realm="security" charset="UTF-8"",
"ApiKey"
]
}
},
"status": 401
}

can anyone please guide me how can we get API KEY.. provide me link and how to use in curl command.

Welcome!

You need to use the credentials which have been generated when you first started the cluster or the updated login / passwords if you changed that.

Note that if you are running Kibana as well, you can activate the trial from the web interface.

Thanks so much for your response.
Do you steps how can we enable this using Kibana..

and i downloaded the package and set the user name as elastic initially.. so i didn;t set any mail yet.. do you have some sample how can we pass credentials in curl command.. i mean what parameter we need to give in header and body for user name and password to pass to ES.

Thanks so much for your response.
Do you steps how can we enable this using Kibana..

See License Management | Kibana Guide [8.11] | Elastic

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.