elasticsearch
pip
from elasticsearch import Elasticsearch, helpers import csv, datetime # Password for the 'elastic' user generated by Elasticsearch ELASTIC_PASSWORD = "*****************" # Create the client instance es = Elasticsearch( "https://localhost:9200", ca_certs="/home/couzhei/code/FastAPI-stacks/Paya/http_ca.crt", basic_auth=("elastic", ELASTIC_PASSWORD) ) # This is almost pseudo code for dataset in es.all_indices(): print(dataset.name, dataset.created_at, dataset.size)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)