This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To run this script make a directory called elasticsearch for your data. | |
# Note that this script won't work if your data is too big for local disk. | |
import pickle | |
from elasticsearch import Elasticsearch | |
### CHANGE THESE CONSTANTS TO MATCH THE ELASTICSEARCH CLUSTER YOU'RE MIGRATING FROM ### | |
ES_HOST = "example.elasticsearch.url.com" | |
ES_PORT = 9200 | |
ES_INDEX = "my_index_name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Dumps Elasticsearch index; handy for backing up Kibana.""" | |
import sys | |
import argparse | |
import json | |
import logging | |
import requests |