Export Data from ElasticSearch to CSV

Shaon Shaonty
3 min readDec 27, 2018

A few days ago I experienced a very horrible situation. Someone from our DevOps team, by mistake, delete my primary Postgres Db table. Boommm!!

elastic site

Fortunately, my secondary Db was ElasticSearch and all data was populated there. God save us for 7–10 hours system down. Because it is one of the core services and without these data nothing working. Ok, now I need to repopulate my pg DB with elastic data…

--

--

Shaon Shaonty

Data Scientist | Software Engineer | Computer Science Graduate @TU Dresden