Giter Club home page Giter Club logo

le_chef's Introduction

Logging Support for Chef

This cookbook is suitable for use with any Chef environment running on Ubuntu 10.04 or greater.

Requirements:

Attributes (as JSON):

"le" : {
    "userkey"			: "logentries_userkey"
	"hostname"			: "logentries_hostname"
	"logs_to_follow"	: ["path_to_log_file 1", ..]
}

When adding log files to follow, change to:

"le" : {
    "logs_to_follow" : ["path_to_log_file 1", ..]
}

Updating the Logentries Agent

Restarting the Chef script will allow the recipe to install any updates to the logentries agent.

Logging Support for Scalarium

Requirements:

See also http://support.scalarium.com/kb/tutorials/customizing-your-scalarium-cloud-using-chef-configuring-custom-cookbooks/

Set up a cloud in Scalarium, with Ubuntu 10.04 or higher as the default operating system.

Open the cloud and go to Actions -> Manage Cookbooks.

Enable custom cookbooks.

  • Repository Type: Git
  • Repository URL: git://github.com/logentries/le_chef.git
  • Deploy SSH Key, Brach/Revision: leave empty

To configure the Logentries cookbook, go to Actions -> Edit Cloud and add the following to the Custom JSON field.

"le" : {
	"userkey"			: "logentries_userkey"
	"hostname"			: "logentries_hostname"
	"logs_to_follow"	: ["path_to_log_file 1", ..]
}

where

  • logentries_userkey is the userkey obtained by following the instructions at https://logentries.com/getsetup --> Go with the api --> Scalarium
  • logentries_hostname is the desired name for this machine in your Logentries account. Optional - default hostname is "Scalarium".
  • ["path_to_log_file 1", ..] is the list of paths to log files you want to follow.

Add a role with at least one instance to the cloud, if none already exist, and add Logentries to the 'setup' action in Custom Recipes.

When the instance is started, the server will be registered and the given log files will be followed.

To add more log files, first delete the JSON from the cloud custom JSON.

Go to Actions > Execute Recipes.

  • Recipes: Logentries

  • Custom JSON:

      "le" : {
      	"logs_to_follow" : ["path_to_log_file 1", ..]
      }
    

le_chef's People

Contributors

c-fenlon avatar marklc-r7 avatar gogojimmy avatar karlfreeman avatar joeheung avatar

Watchers

Chu-Siang Lai avatar  avatar James Cloos avatar Sammy Lin avatar jax avatar zhusan avatar  avatar 耿返 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.