Last active
August 29, 2015 14:01
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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