By snapshot

This will run a snapshot of Elasticsearch that is usually built nightly. Read more about Daily Elasticsearch Snapshots.

See all available options, like how to specify a specific license, with the flag.

  1. yarn es snapshot --help

trial will give you access to all capabilities.

Keeping data between snapshots

If you want to keep the data inside your Elasticsearch between usages of this command, you should use the following command, to keep your data folder outside the downloaded snapshot folder:

  1. yarn es snapshot -E path.data=../data

Use this if you already have a distributable. For released versions, one can be obtained on the Elasticsearch downloads page.

  1. yarn es archive <full_path_to_archive>

Each of these will run Elasticsearch with a basic license. Additional options are available, pass —help for more information.

You can save some system resources, and the effort of generating sample data, if you have a remote Elasticsearch cluster to connect to. (Elasticians: you do! Check with your team about where to find credentials)

You’ll need to create a kibana.dev.yml () and add the following to it:

  1. elasticsearch.hosts:
  2. elasticsearch.password: {{ password }}
  3. elasticsearch.ssl.verificationMode: none

If many other users will be interacting with your remote cluster, you’ll want to add the following to avoid causing conflicts:

Running remote clusters

Start your primary cluster by running:

Start your remote cluster by running:

  1. yarn es snapshot -E transport.port=9500 -E http.port=9201 -E path.data=../data_prod2

Once both clusters are running, start Kibana. Kibana will connect to the primary cluster.

Setup the remote cluster in Kibana from either Management → Elasticsearch → Remote Clusters UI or by running the following script in Console.

Follow the cross-cluster search instructions for setting up index patterns to search across clusters ().