Forge Home

logentries

Install and configure the logentries.com daemon

111,410 downloads

108,255 latest version

3.9 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.3 (latest)
  • 0.1.2
  • 0.1.1
  • 0.1.0 (deleted)
released Mar 14th 2016
This version is compatible with:
  • Puppet Enterprise >= 2.7.0 < 2015.3.0
  • Puppet >= 2.7.0 < 5.0.0
  • , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'logentries-logentries', '0.1.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add logentries-logentries
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install logentries-logentries --version 0.1.3

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

logentries/logentries — version 0.1.3 Mar 14th 2016

Logentries for Puppet

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup
  4. Usage
  5. Limitations
  6. Development

Overview

This is a Puppet module for easy installation and configuration of the logentries linux agent.

Module Description

This is the official module for working with Logentries in puppet.

With this module, you are currently able to

  • automatically add the logentries repos and GPG keys for
    • RHEL 7/CentOS7
    • Ubuntu 14.04 (trusty)
    • Debian 8 (Jessie)
    • other versions of those distributions may work but are currently not tested.
  • configure the logentries agent
  • follow logs via either local config or server side config, host based or via tokens

Why Logentries

Logentries is a real-time log management and analytics service that makes it easy to collect logs from any environment for search, monitoring and analysis.

Setup

What Logentries Does

By using this module, you will deploy and run an open source log collecting client daemon (agent) implemented in python.

Setup Requirements

For automatically managing package repos, this module requires

  • Debian/Ubuntu: apt with pluginsync=true
  • lsb_release

Install

Install this module by issuing puppet module install logentries or by downloading the latest version and unpacking it in your modules folder.

Usage

Configure the logentries class with your account key - if you include this this in any boilerplate class, you should make sure all platforms using it are supported.

The bare minimum configuration would include only the account key:

class {'logentries':
  # Get this key by executing le register manually on a test host
  # and extract it from /etc/le/config or by going to "account -> 
  # profile -> account key" in the web interface
  account_key => "nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn",
}

The module knows of a few more useful configuration parameters:

class {'logentries':
  account_key => "nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn",

  # Specify the host specific agent key - useful if 
  # you need to re-setup or for whatever other reason
  # want to re-use an already registered host
  agent_key => "nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn",
  
  # Specify an alternate datahub
  datahub => "datahub.myorganization.com",
  
  # Do not create local follow configurations, but use
  # server-side configuration.
  use_server_config => true,
  
  # If you prefer to provide the logentries and logentries-daemon
  # packages via other means (e.g. your own local repo) you can
  # prevent this module from automatically adding the external
  # logentries repos.
  manage_repos => false, 
}

Install the agent

# Automatically included by logentries::agent::follow directives
include logentries::agent

Follow a logfile

Stream the content of a logfile to logentries.

# NB: This is just an example. There are significantly better ways to 
# integrate logentries with syslog than this
logentries::agent::follow {"/var/log/messages": }

Add a logfile to a logset or destination

This would be useful if you want to combinine log sources from similar logfiles across many hosts into one log file.

# NB: This is just an example. There are significantly better ways to 
# integrate logentries with syslog than this
logentries::agent::follow {"all www server messages":
  path => "/var/log/messages",
 
  # Alternatively, specify your own destination. Only the destination
  # OR the token parameter can be used.
  destination = "www-servers/messages",

  # Create this token first in the web interface. Not
  # compatible with server-side configs.
  # token => "nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn",
}

Limitations

  1. Works on Debian, Ubuntu and RHEL/CentOS only.
  2. If /etc/le/config already exists, it won't be updated unless deleted first

Known Issues

  1. Adds the RPM key via URL
  2. After a class configuration change, /etc/le/config has to be manually deleted to trigger its recreation
  3. To remove follow configurations, local or server side config has to be manually deleted.
  4. No sensible syslog support
  5. No datahub class
  6. No filter support