Skip to content

Instantly share code, notes, and snippets.

@firstnevyn
Created December 12, 2013 00:03
Show Gist options
  • Save firstnevyn/7920904 to your computer and use it in GitHub Desktop.
Save firstnevyn/7920904 to your computer and use it in GitHub Desktop.
a logstash filter for puppet run and compile times
if [program] == "puppetmasterd" {
grok { match => [ "message", "Compiled catalog for %{HOSTNAME:puppet_client} in %{NUMBER:puppet_compile:int} seconds" ]
}
}
if [program] == "puppetd" {
grok { match => [ "message", "Finished catalog run in %{NUMBER:puppet_runtime:float} seconds" ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment