Skip to content

Instantly share code, notes, and snippets.

@dalegaspi
Last active August 29, 2015 14:01
Show Gist options
  • Save dalegaspi/54c9d7984e9238c14503 to your computer and use it in GitHub Desktop.
Save dalegaspi/54c9d7984e9238c14503 to your computer and use it in GitHub Desktop.
I'm creating an elasticsearch import data file using python (import.txt) and I wanted to display the real-time documents per second
tail -f import.txt | grep --line-buffered _index | while read line; do printf "$(date '+%F %T')\n"; done | uniq -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment