Connecting Elasticsearch to a blockchain node
Editing the configuration for Elasticsearch
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
Start the witness node to being pushing indexes to Elasticsearch. The beginning few logs should show the Elasticsearch plugins started:
Basic Checks
You can check the indexes created after the witness start with the next call:
You can also get index search data with:
Last updated