Flask interface to easily view indices, doc_types and documents in elasticsearch cluster
Flask interface to easily view indices, doc_types and documents in elasticsearch cluster
This is a Python-Flask based application which displays all the indices in your Elasticsearch cluster listing all the doc_types in each index.
Also, documents of each doc_type in an index can be seen in a clear JSON format.
Note : Recommended Python version is 2.7
sudo apt-get install python python-pip
(Install python and pip if not already installed)sudo apt-get install python-virtualenv
(Install python virtual environment)virtualenv venv
(Create virtual env for the project)source venv/bin/activate
(Activate the virtual env)pip install -r requirements.txt
(pip will install all dependencies listed in the requirements file)deactivate
to come out of virtual environment sudo apt-get install python python-pip
(Install python and pip if not already installed)pip install -r requirements.txt
(pip will install all dependencies listed in the requirements file) (Use sudo
in command if needed) Note : The requirements file basically installs the following pip packages : flask
, requests
, elasticsearch
source venv/bin/activate
to activate it otherwise skip this step.python app.py
in the project folder.app.py
file)http://localhost:5001
in browser. (Or whatever is the server and port)