Skip to content

Instantly share code, notes, and snippets.

@johntbush
Created May 24, 2015 16:16
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 johntbush/44175902b20d4d005dc2 to your computer and use it in GitHub Desktop.
Save johntbush/44175902b20d4d005dc2 to your computer and use it in GitHub Desktop.
jq piping
curl -s http://localhost:9999/admin/offsets/fps_event/search-centralconfig_prod | \
jq --arg timestamp `date -u --iso-8601=seconds` '.timestamp = $timestamp' | \
curl -s -X PUT -H "Content-Type: application/json" -d @- http://localhost:9200/kafka-offset-log/offset/`date +"%s"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment