How to create a data view and an index aat the same time in elastic search using python

I am trying to push a CSV file directly into Elasticsearch using python and it's working. But, it is only creating an index. I want to create a data view along with it so that I can create a dashboard in Kibana but I'm getting a few errors mainly Deprecation Warnings. So, can anyone please help me in this matter?

I have never done it but seems like you have to use kibana api for it

this is how I have use kibana api in past. for example to retrieve all the space in kibana

url_space=f'http://{master}:5601/api/spaces/space'
space_names = requests.get(url_space, auth=(elk_admin_user,elk_admin_password))

Okay, thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.