Connection Tips
- You can connect to all indices by passing an
*
in the index name input field. - You can also connect to a single index or multiple indices by passing them as comma separated values: e.g. index1,index2,index3.
- Avoid using a trailing slash
/
after the cluster address. - Your cluster needs to have CORS enabled for the origin where Dejavu is running. See below for more on that.
CORS Settings
To make sure you have enabled CORS settings for your Elasticsearch instance, add the following lines in the ES configuration file:
http.port: 9200 http.cors.allow-origin: http://localhost:1358,http://127.0.0.1:1358 http.cors.enabled: true http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization http.cors.allow-credentials: true
If you are running Elasticsearch via Docker, use the following command:
docker run -d --rm --name elasticsearch -p 127.0.0.1:9200:9200 -e http.port=9200 -e discovery.type=single-node -e http.max_content_length=10MB -e http.cors.enabled=true -e http.cors.allow-origin=\* -e http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -e http.cors.allow-credentials=true -e network.publish_host=localhost -e xpack.security.enabled=false docker.elastic.co/elasticsearch/elasticsearch:8.15.1
Or the following if you are using OpenSearch:
docker run --name opensearch --rm -d -p 9200:9200 -e http.port=9200 -e discovery.type=single-node -e http.max_content_length=10MB -e http.cors.enabled=true -e http.cors.allow-origin=\* -e http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -e http.cors.allow-credentials=true -e DISABLE_SECURITY_PLUGIN=true opensearchproject/opensearch:2.17.0