pteich / elastic-query-export

🚚 Export Data from ElasticSearch to CSV/JSON using a Lucene Query (e.g. from Kibana) or a raw JSON Query string
MIT License
89 stars 18 forks source link

Fix flag start, remove new lines character out of CSV, and support es7 #3

Closed dinhtrung closed 4 years ago

dinhtrung commented 4 years ago

In ES my data have some complex structure with multiple new lines, making generated CSV files disrupted.

I adjust your code to check for nil value cell, and remove new lines on csv data.

Also change the import part to support ES7.