taraslayshchuk / es2csv

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

change list to string in output #64

Closed zoltantalas closed 5 years ago

zoltantalas commented 5 years ago

Is there a possibility to change the elastic list field into a string in the csv output?

eg: this: animals: ["cat","dog","lion"]

looks like this in the output (with header): animals.0.animals.1,animals.2 "cat","dog","lion"

while i would need something like this animals "cat,dog,lion"

thanks

zoltantalas commented 5 years ago

-k flag solved my problem, thanks.