License Updating in X-pack

Where should I use this command to upgrade my licencse?
curl -XPUT -u elastic 'http://<host>:<port>/_xpack/license' -H "Content-Type: application/json" -d @license.json

From the terminal or via kibana dev tools.

please note you will be prompted for the elastic user password and please ensure that the license file is correctly placed here: @license.json exactly after the @

In any particular directory or simply open terminal and run?

within the exact directory where the downloaded license file resides..

curl: (7) Failed to connect to ip port xxxx: Timed out

can you share the full command you just ran?

did you 'http://<host>:<port>/_xpack/license' update the host and port sections here to point to your elasticsearch cluster and the port is it running on?

Yes I did.
curl -XPUT -u elastic "xxxxxxxxx/_xpack/license" -H "Content-Type: application/json" -d @license.json


I can not share host and port (company policy).

Sure given the xxxxxxxxx I wanted to know if the port was specified, which from your response I gauge it is.

curl Timed out, you need to be in a position where you can talk to elasticsearch from the terminal you reside at.

I did not understand. Can you be more specific?

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