Elastic Search License Installation on Windows


(Mike ) #1

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


How to get the free version license.json?
(David Pilato) #2

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

(Mike ) #3

Hi @dadoonet:

I fixed it. Thanks for your timely help.


(Christoffer Vig) #4

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


(David Pilato) #5

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


(Christoffer Vig) #6

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


#7

@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.


(David Pilato) #8

I don't know. Open a new thread.


(system) #9

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