Cerebro is the evolution of the previous Elasticsearch plugin Elasticsearch kopf (https://github.com/lmenezes/elasticsearch-kopf) that doesn't work in Elasticsearch 5.x or above due to removing of site plugins.
Cerebro is a partial rewrite of the previous plugin available as a self-working application server.
You need an up-and-running Elasticsearch installation as we described in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.
Java JVM version 8.x or above must be installed to run Cerebro.
For installing Cerebro, you need to download it and manually install its plugin. We will now perform the following steps:
wget https://github.com/lmenezes/cerebro/releases/download /v0.4.2/cerebro-0.4.2.tgz
tar xfvz cerebro-0.4.2.tgz
cerebro-0.4.2/bin/cerebro
cerebro-0.4.2incerebro.bat
[warn] application - Logger configuration in conf files is deprecated and has no effect. Use a logback configuration file instead. [info] play.api.Play - Application started (Prod) [info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
http://0.0.0.0:9000/
Cerebro is a modern reactive application written in Scala via the Play Framework for the backend REST and Elasticsearch communication and a Single Page Application (SPA) frontend written in Javascript with AngularJS.
By default, Cerebro binds on port 9000. You can navigate with a browser at the address http://0.0.0.0:9000
to view the following start page:
In the start page, you can select a predefined host or you can manually insert the address of your Elasticsearch server. If you need, you can provide credentials for accessing your Elasticsearch cluster.
After having pressed connect, if everything is okay, you can access the Cerebro main page with your nodes view as shown in the following screenshot:
The Cerebro main page provides a very large overview of your cluster and data; from top to bottom we have as follows:
The main page or overview view is very rich of useful data. With a single look, you can scope nodes with high loads or full disk, how the shards are distributed in your cluster, and if there are problems with some indices.
Clicking on a particular index settings a form is open to change all the index options that can be changed as shown in the following screenshot:
The create index page allows easy creating an index defining shards, replicas, or templates as shown in the following screenshot:
The cluster settings page allows changing cluster mutable parameters from a simple interface. This is advanced usage, but the simplicity of the form speeds up cluster settings management as shown in the following screenshot:
Managing repository can be achieved by using the repositories menu. The page allows you to define the name and the type of the repository to be used for future backup/restore actions as shown in the following screenshot:
If a repository is created via interfaces or API, it can be used to execute backup and restore actions. Clicking on shapshot menu, you can access a page where:
The preceding part of Cerebro allows you to cover special aspects of Elasticsearch management; in the rest menu, you can access a page where you can execute raw REST calls against Elasticsearch as shown in the following screenshot:
Cerebro doesn't provide data visualization or discovery as Kibana, but it can execute raw REST against an Elasticsearch endpoint. With this functionality, queries can be tested against an Elasticsearch server. This is very handy to work a low level with Elasticsearch.
The rest interface also allows you to export the call as a curl command.
The Cerebro interface is quite new. The new features are in development and will be released in the near future.
13.59.145.158