首页 > 解决方案 > Trying to access data in Elasticsearch indecies

问题描述


There is an index created on Elastic Kibnana and trying to access and update. I am not sure if I understood correctly.

For example, let's say I have my own domain called "123.45.67.89:6000."

In Python, this is what I have

from elasticsearch import Elasticsearch
es = Elasticsearch("http://123.45.67.89:6000")
es.indices.get_alias()

The following code fails to retrieve with 400 error message.

elasticsearch.exceptions.NotFoundError: NotFoundError(404, 'Not Found', 'Not Found')


Question: How can I access or fetch data from "operationratefinal"?

If I were to use "get_alias," I was expecting result from "operationratefinal."

Below is what I have from Kibana,

enter image description here

标签: pythonpython-3.xelasticsearchkibanaelasticsearch-5

解决方案


推荐阅读