Skip to content

Instantly share code, notes, and snippets.

@btobolaski
Last active December 19, 2015 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btobolaski/5910594 to your computer and use it in GitHub Desktop.
Save btobolaski/5910594 to your computer and use it in GitHub Desktop.
Logstash as a chef handler
default['chef_client']['handler']['gelf']['host'] = '<hostname/ip>'
default['chef_client']['handler']['gelf']['port'] = 12201
default['chef_client']['handler']['gelf']['report_host'] = node['hostname']
input {
gelf {
format => "json_event"
type => "chef"
}
}
include_recipe 'gelf_handler'
output {
redis {
key => "logstash"
data_type => "list"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment