{"id":13782201,"url":"https://github.com/jellybob/chef-gelf","last_synced_at":"2025-05-11T15:32:15.844Z","repository":{"id":59152029,"uuid":"2006399","full_name":"jellybob/chef-gelf","owner":"jellybob","description":"A Chef handler that reports to Graylog2 servers.","archived":false,"fork":false,"pushed_at":"2011-12-19T10:51:13.000Z","size":96,"stargazers_count":20,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-01T12:05:09.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jellybob.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-06T12:50:12.000Z","updated_at":"2023-02-13T10:40:29.000Z","dependencies_parsed_at":"2022-09-13T10:50:29.065Z","dependency_job_id":null,"html_url":"https://github.com/jellybob/chef-gelf","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellybob%2Fchef-gelf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellybob%2Fchef-gelf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellybob%2Fchef-gelf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellybob%2Fchef-gelf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jellybob","download_url":"https://codeload.github.com/jellybob/chef-gelf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954397,"owners_count":21830902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:01:33.987Z","updated_at":"2025-05-11T15:32:15.555Z","avatar_url":"https://github.com/jellybob.png","language":"Ruby","funding_links":[],"categories":["Chef handlers"],"sub_categories":["Resources - Application configuration"],"readme":"= DESCRIPTION:\n\nProvides a Chef handler which can report run status, including any changes that were made, to a Graylog2 server. In the case of failed runs a backtrace will be included in the details reported.\n\n= REQUIREMENTS:\n\n* A Graylog2 server running somewhere.\n\n= USAGE:\n\nThis example makes of the chef_handler cookbook, place some thing like this in cookbooks/chef_handler/recipes/gelf.rb and add it to your run list. It also assumes your Graylog2 server has set the attribute rsyslog_server to true.\n\n  log_server = search(:node, \"rsyslog_server:true\").first\n\n  if log_server\n    include_recipe \"chef_handler::default\"\n\n    gem_package \"chef-gelf\" do\n      action :nothing\n    end.run_action(:install)\n    \n    # Make sure the newly installed Gem is loaded.\n    Gem.clear_paths\n    require 'chef/gelf'\n    \n    chef_handler \"Chef::GELF::Handler\" do\n      source \"chef/gelf\"\n      arguments({\n        :server =\u003e log_server['fqdn']\n      })\n\n      supports :exception =\u003e true, :report =\u003e true\n    end.run_action(:enable)\n  end\n\nArguments take the form of an options hash, with the following options:\n\n* :server                 - The server to send messages to.\n* :port (12201)           - The port to send on.\n* :facility (chef-client) - The facility to report under.\n* :host (node.fqdn)       - The host to report messages as coming from.\n* :blacklist ({})         - A hash of cookbooks, resources and actions to ignore in the change list.\n\n= BLACKLISTING:\n\nSome resources report themselves as having updated on every run even if nothing changed, or are just things you don't care about. To reduce the amount of noise in your logs these can be ignored by providing a blacklist. In this example we don't want to be told about the GELF handler being activated:\n\n    chef_handler \"Chef::GELF::Handler\" do\n      source \"chef/gelf\"\n      arguments({\n        :server =\u003e log_server['fqdn'],\n        :blacklist =\u003e {\n          \"chef_handler\" =\u003e {\n            \"chef_handler\" =\u003e [ \"nothing\", \"enable\" ]\n          }\n        }\n      })\n\n      supports :exception =\u003e true, :report =\u003e true\n    end.run_action(:enable)\n\n= LICENSE and AUTHOR:\n\nAuthor:: Jon Wood (\u003cjon@blankpad.net\u003e)\nCopyright:: 2011, Blank Pad Development\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellybob%2Fchef-gelf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjellybob%2Fchef-gelf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellybob%2Fchef-gelf/lists"}