Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


loggly_rsyslog_ng (6) Versions 4.2.0

LWRP for configuring rsyslog to send data to Loggly

cookbook 'loggly_rsyslog_ng', '= 4.2.0', :supermarket
cookbook 'loggly_rsyslog_ng', '= 4.2.0'
knife supermarket install loggly_rsyslog_ng
knife supermarket download loggly_rsyslog_ng
Quality 100%

Loggly rsyslog LWRP

Provide LWRP for configuring rsyslog for use with Loggly. This cookbook was built upon the work from an existing cookbook,


  • Chef 11 or higher
  • Ruby 2.0.0 or higher


Tested against Debian 7


loggly_rsyslog_ng '/etc/rsyslog.d/22-loggly.conf' do
  loggly_token      'my_very_secret_token'
  tags              [ node.chef_environment ]



  • tags - A list of event tags to apply to a message ( (optional)

  • log_files - A list of files rsyslog should monitor. (optional). Below is an example
    of a hash used to describe a file to monitor.

        :filename => "/var/log/filename.log",
        :tag => "tag you want for this logfile",
        :statefile => "unique-name-for-statefile",
        :facility => 'local5' # Optional

* `log_dirs` - A list of directories to monitor (optional). The loggly configuration template will create an [imfile]( block for each file ending in '.log' in that directory. Each logdir in the list is of the format:
        :directory => "/var/log/directory",
        :tag => "tag for all files in this directory",
        :facility => 'local5' # Optional

* `tls_enabled` - Set to true if communication to the remote service should use TLS (defaults to true)
* `tls_path` - Directory where the loggly certificate should be placed
* `tls_name` - File where the loggly certificate should be placed
* `loggly_value` - The Loggly token. Set from the Data Bag above by default.

* `conf` - Name of the loggly rsyslog confiugration file (defaults to /etc/rsyslog.d/10-loggly.conf)
* `host` - Name of the remote loggly syslog host (defaults to
* `port` - Port of the remote loggly syslog host (defaults to 514 and if TLS is enabled to 6514)
* `input_file_poll_interval` - Specifies how often files are to be polled for new data (defaults to 10)

### tls

* `tls_cert_url` - Url to the certificate
* `tls_intermediate_cert_url` - Url to the intermediate certificate
* `tls_cert_checksum` - Cchecksum of the certificate
* `tls_intermediate_cert_checksum` - Checksum of the intermediate certificate

License & Authors
- Author: Matt Veitas 
- Author: Kostiantyn Lysenko 

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

apt ~> 2.0
rsyslog ~> 1.13.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

loggly_rsyslog_ng Cookbook CHANGELOG

This file is used to list changes made in each version of the loggly_rsyslog_ng cookbook.


  • Add: installing loggly certificate from file by default. network connection is not reliable.
  • Fix: calling loggy_rsyslog_ng_tls provider inside loggy_rsyslog_ng provider


  • Add: optional facility opgion go log_file and log_dir hashes.


  • Modify: rewrite the cookbook as LWRP


  • Modify: fork cookbook from loggly-rsyslog cookbook
  • Modify: cookbook name, from loggly-rsyslog to loggly_rsyslog_ng to avoid name collisions
  • Fix: checksum for loggly SSL certificate


  • Use an encrypted databag to retrieve the loggly token instead of a node attribute


  • Set rsyslog configuration values to be configurable via attributes

v1.0.0 (1/25/2014)

  • Initial cookbook version
  • Support for sending messages using TLS
  • Configuration for monitoring a list of files
  • Configuration for monitoring a list of directories

Foodcritic Metric

4.2.0 passed this metric