Console

The Console plugin provides a UI to interact with the REST API of Elasticsearch. Console has two main areas: the editor, where you compose requests to Elasticsearch, and the response pane, which displays the responses to the request. Enter the address of your Elasticsearch server in the text box on the top of screen. The default value of this address is localhost:9200.

Figure 1. The Console UI

Screenshot

Console understands commands in a cURL-like syntax. For example the following Console command

GET /_search
{
  "query": {
    "match_all": {}
  }
}

is a simple GET request to Elasticsearch’s _search API. Here is the equivalent command in cURL.

curl -XGET "http://localhost:9200/_search" -d'
{
  "query": {
    "match_all": {}
  }
}'

In fact, you can paste the above command into Console and it will automatically be converted into the Console syntax.

When typing a command, Console will make context sensitive suggestions. These suggestions can help you explore parameters for each API, or to just speed up typing. Console will suggest APIs, indexes and field names.

Figure 2. API suggestions

Suggestions

Once you have typed a command in to the left pane, you can submit it to Elasticsearch by clicking the little green triangle that appears next to the URL line of the request. Notice that as you move the cursor around, the little triangle and wrench icons follow you around. We call this the Action Menu. You can also select multiple requests and submit them all at once.

Figure 3. The Action Menu

The Action Menu

When the response come back, you should see it in the left hand panel:

Figure 4. The Output Pane

Screenshot

Console allows you to easily switch between Elasticsearch instances. By default it will connect to localhost:9200 but you can easily change this by entering a different url in the Server input:

Figure 5. The Server Input

Server

The Console UI

In this section you will find a more detailed description of UI of Console. The basic aspects of the UI are explained in the Console section.