forked from https://bitbucket.org/maplebed/ganglia-logtailer