Skip to content

Instantly share code, notes, and snippets.

@doug-rosser
Last active September 28, 2017 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save doug-rosser/765e85bdac15936162067ec11a1222ac to your computer and use it in GitHub Desktop.
Save doug-rosser/765e85bdac15936162067ec11a1222ac to your computer and use it in GitHub Desktop.
drosser@drosser:~/MacBook/temp$ cat pe_acceptance_tests_drosser/get_compiles.sh
#!/usr/bin/env bash
# NOTE: you may need to change "Compiled catalog" to "Compiled static catalog"
# Usage example: ./get_compiles 2017-09-27 05 06 07 08
DATE="$1"
shift
for x in "$@"
do
grep "Compiled 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