LogDNA Chef Handler
Description
A Chef Handler that sends logs from each client run to LogDNA.
Installation and Usage
include_recipe "chef_handler"
chef_gem "chef-handler-logdna"
require 'chef/handler/logdna'
chef_handler "Chef::Handler::LogDNA" do
source "chef/handler/logdna"
action :nothing
arguments :logdna_key => "<LOGDNA_INGESTION_KEY>"
end.run_action(:enable)
- Or you can use this in your recipe by adding the following snippet of code to your recipe:
chef_handler "Chef::Handler::LogDNA" do
source "<PATH TO LOGDNA CHEF HANDLER>"
action :nothing
arguments :logdna_key => "<LOGDNA_INGESTION_KEY>"
end.run_action(:enable)
Happy Logging!