Using Kibana dev-console

X-Pack provides cluster functionalities that allow you to control and monitor your nodes and cluster. This is a very useful component of X-Pack as it is the lifesaver on large installations.

Getting ready

You need an up-and-running Elasticsearch installation as we described in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.

You also need a functional Kibana installation as described in the Installing Kibana and X-Pack recipe. The X-Pack is not needed.

How to do it...

To use X-Pack Elasticsearch monitor, we will perform the following steps:

  1. We access the Dev Tools section of Kibana as shown in the following screenshot:
    How to do it...
  2. Now we can use the dev console to create/execute/test queries and other Elasticsearch HTTP API via it as shown in the following screenshot:
    How to do it...

How it works...

The Kibana console is very similar to the Cerebro interface that we have previously seen.

It allows us to execute every kind of REST API call via the http interface to Elasticsearch. It can be used for several purposes such as follows:

  • Creating complex queries and aggregations. The console interface helps the user by providing code completion and syntax checking during editing.
  • Analyzing the returned results. It is very useful to check particular aggregation responses or the structure of the API answers.
  • Testing/Debugging queries before embedding them in your application code.
  • Executing REST services that are now wrapped in Elasticsearch interfaces, such as repository/snapshot/restore ones.

There's more...

The Kibana Dev Tools also provides support to drill down the times needed to execute a particular query via the Profiler section. As the execution of a query with some aggregation can be very complex and can take a lot of time to profile the query, this is the most advanced interface available in Elasticsearch to profile query execution. It's available in the open source part of Kibana as shown in the following screenshot:

There's more...
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.232.187