Skip to content

Instantly share code, notes, and snippets.

@bryder
Created May 15, 2016 22:54
Show Gist options
  • Save bryder/e83fa912676efc0171bebd01bea2524b to your computer and use it in GitHub Desktop.
Save bryder/e83fa912676efc0171bebd01bea2524b to your computer and use it in GitHub Desktop.
cat get_job_totals.no_beauty_exrs.002 | jq -c '
.[] | { index: { _index: "manuka_xmlstats_by_job", _type: "by_job"}},
.' | curl -XPOST http://escluster:9200/_bulk --data-binary @-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment