elasticlicense

command
v0.0.0-...-e07045a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: BSD-3-Clause, MIT Imports: 10 Imported by: 0

README

elasticlicense

This is a tool which can be used to install the x-pack license into an Elasticsearch cluster.

Installation

go get github.com/Azure/helm-elasticstack/tools/elasticlicense

Alternatively you can build the docker image by cloning the repository and executing the following command:

make image

Install a new license

Download the license form Elasticsearch support and store it into a license.json file.

You should also define the basic authentication credentials used by your Elasticsearch cluster in a auth-file.json as follows:

{
  "username": "<USER NAME>",
  "password": "<PASSWORD>"
}

The license can be installed by executing the command:

elasticlicense install -license-file=license.json -host=<ELASTICSEARCH-HOST> -port=<ELASTICSEARCH-PORT> -auth-file=auth-file.json

or run the tool in a docker container:

docker run --rm -v ${PWD}:/config -t mseoss/elasticlicense install -license-file=/config/license.json \
-host=<ELASTICSEARCH-HOST> -port=<ELASTICSEARCH-PORT> -auth-file=/config/auth-file.json

The installed license can be viewed with the following command:

elasticlicense view -host=<ELASTICSEARCH-HOST> -port=<ELASTICSEARCH-PORT> -auth-file=auth-file.json

Development

You can execute the tests and build the tool using the default make target:

make

To build and publish the docker image execute:

make image
make image-push

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL