Logparser is a log parsing library to extract metrics from unstructured logs. Also in this repository, you can find a CLI tool that calculates a log summary from stdin.