by alexberghage · 12y ago · 0 comments
my_data = !find . | grep .log | xargs grep interesting_event | awk '{print $3}'
map(float, my_data)
hist(my_data, 12)
Which will dump out a nice pretty 12-bin histogram of whatever the numeric data in the third column of output, of messages containing interesting_event was. To get this sort of fancy, run `ipython notebook --pylab=inline` and enjoy!EDIT: for context, I wind up using this all the time to tease out information from Riak logs, like how long Bitcask merges take, in aggregate, and for locating particular events in time and characterizing their frequency.
No comments yet.