Elastic Search License Installation on Windows

Hi-
I've received the license for Elastic search, Would you please let me know, how do I install the license on the Windows-7 machine ?

CURL doesn't work in my machine. Thanks !

Regards.
Prakash

1 Like

I moved your question to #x-pack.

I believe you can always use Kibana or any REST plugin for your browser?

Instead of:

curl -XPUT -u elastic 'http://<host>:<port>/_xpack/license' -d @license.json

Open kibana then in the console:

PUT _xpack/license
// Copy the content of the license.json here
4 Likes

Hi @dadoonet:

I fixed it. Thanks for your timely help.

In case you want to script this, you can use recent versions of Windows Powershell

gc .\<license file> |  Invoke-WebRequest -uri http://<host>:<port>/_xpack/license -Credential <username> -Method Put

It will prompt you for a password. I suppose you could create the credential in script as well

3 Likes

@Babadofar Would -Method Put work as well? I guess so but prefer asking.

Oh sure, it should be PUT :slight_smile: I fixed the original post as well...

@dadoonet
my issue is X-Pack is expired, I can not start elasticsearch and Kibana, so I can't use your method, do you have any other way for window? thank you.

I don't know. Open a new thread.

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