Enabling Elasticsearch on a Node
Last updated
Was this helpful?
Last updated
Was this helpful?
Elasticsearch is a free search engine used for finding and indexing schema-free JSON documents. This makes viewing large data stores fast and simple. For our purposes, Elasticsearch is most useful for full nodes which host all account histories on the blockchain.
For more information, see the page.
Elasticsearch is already installed along with the Witness node. There's no need to do any install for Elasticsearch. You just have to set up the config to enable its use.
Enabling Elasticsearch is as simple as editing the node config file. First you'll add the Elasticsearch plugins to the list of active plugins. Then you'll add the Elasticsearch URL to a couple of options within the config.
Inside ./witness_node_data_dir/config.ini
edit the following:
Uncomment plugins =
and add the elasticsearch
and es_object
plugins.
Uncomment elasticsearch-node-url =
and add the Endpoint URL for your Elasticsearch instance.
Make sure to keep the trailing slash at the end of the URL.
Uncomment es-objects-elasticsearch-url =
and add the Endpoint URL for your Elasticsearch instance.
Make sure to keep the trailing slash at the end of the URL.
Start the witness node to being pushing indexes to Elasticsearch. The beginning few logs should show the Elasticsearch plugins started:
You can check the indexes created after the witness start with the next call:
You can also get index search data with: