Skip to content

Instantly share code, notes, and snippets.

@slackorama
Last active March 18, 2016 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slackorama/a2e72635b5350457025e to your computer and use it in GitHub Desktop.
Save slackorama/a2e72635b5350457025e to your computer and use it in GitHub Desktop.
Convert elasticsearch _search results to a table using csvtoolkit.
curl ... | \
jq '[.hits.hits[]._source | {"bucket": .bucketStart,
"rate": .totalBitRate, "cnt": .bitRateCnt}]' | \
in2csv --format=json | \
csvlook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment