I know how to create or delete index in a python program using:
es.indices.delete(index = fname, ignore = [400, 404])
helpers.bulk(es, json.load(f), index = indexname, doc_type = 'my-type')
But is there a way that I can create index pattern and visualization programmatically? Didn't find API related with index pattern or visualization.
Also how do I get the json format of index pattern and visualization? I saw there's an export button in Kibana and when I clicked it I will download a JSON file. But it seems there's difference between the format of this JSON file and the one we actually need when we are using it in a python program.