Forked from doug-rosser/Getting "throughput" on the compile masters
Last active
September 28, 2017 00:43
-
-
Save stahnma/1de68a5596fd5dd28bae5787c3fdd97d to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
# Usage example: ./get_compiles 2017-09-27 05 06 07 08 | |
DATE="$1" | |
shift | |
for x in "$@" | |
do | |
egrep "'Compiled catalog'|'Compiled static catalog'" /var/log/puppetlabs/puppetserver/puppetserver.log | grep "^$DATE $x:" | wc -l | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment