taraslayshchuk / es2csv

Export from an Elasticsearch into a CSV file
Apache License 2.0
510 stars 191 forks source link

Added --fix-header option #66

Open keithshum opened 5 years ago

keithshum commented 5 years ago

Dot and At signs are usually reserved symbols in database systems. Added an option as --fix-header to explicitly do 2 things for the output csv header row:

  1. Replace dot with underscore;
  2. Remove all the @s which are from the metadata columns.