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/python3 | |
import elasticsearch | |
import argparse | |
import csv | |
from elasticsearch import helpers | |
import json | |
''' | |
Tool for exporting elasticsearch query to CSV file | |
assumption: the response document is not multidimensional(nested) document. |