I'm not able to give any options to es-query-csv - it always complains about incorrect usage. I've tried both compiling it myself and using the precompiled binary available for download.
The only way it works is if I give it no options, which isn't so useful:
β bin/es-query-csv-1.0.0
ELASTIC 2018/03/14 14:19:06 elastic: http://[2001:db8::27c9]:9200 is dead
ELASTIC 2018/03/14 14:19:11 elastic: http://[2001:db8::7e99]:9200 is dead
ELASTIC 2018/03/14 14:19:16 elastic: http://[2001:db8::7ead]:9200 is dead
2018/03/14 14:19:16 Error connecting to ElasticSearch - no active connection found: no Elasticsearch node available
β bin/es-query-csv-1.0.0 -e http://localhost:9200
Error: incorrect usage
Usage: es-query-csv [-v -e -i -r -q -o -f]
CLI tool to export data from ElasticSearch into a CSV file.
Options:
-v, --version Show the version and exit
-e, --eshost ElasticSearch URL (default "http://localhost:9200")
-i, --index ElasticSearch Index (or Index Prefix) (default "logs-*")
-r, --rawquery ElasticSearch Raw Querystring
-q, --query Lucene Query like in Kibana search input
-o, --outfile Filepath for CSV output (default "output.csv")
--fields Fields to include in export as comma separated list
-f, --field Field to include in export, can be added multiple for every field
β bin/es-query-csv-1.0.0 --eshost http://localhost:9200
Error: incorrect usage
Usage: es-query-csv [-v -e -i -r -q -o -f]
CLI tool to export data from ElasticSearch into a CSV file.
Options:
-v, --version Show the version and exit
-e, --eshost ElasticSearch URL (default "http://localhost:9200")
-i, --index ElasticSearch Index (or Index Prefix) (default "logs-*")
-r, --rawquery ElasticSearch Raw Querystring
-q, --query Lucene Query like in Kibana search input
-o, --outfile Filepath for CSV output (default "output.csv")
--fields Fields to include in export as comma separated list
-f, --field Field to include in export, can be added multiple for every field
Sorry, just got aware of your ticket right now. This was something I changed last minute and did not double-check if it's still working. It's now working again.
I'm not able to give any options to
es-query-csv
- it always complains about incorrect usage. I've tried both compiling it myself and using the precompiled binary available for download.The only way it works is if I give it no options, which isn't so useful: