Forge Home

packetbeat

A module installing and configuring Packetbeat

8,962 downloads

7,706 latest version

4.6 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.0 (latest)
  • 0.0.3
  • 0.0.1
released Oct 12th 2017
This version is compatible with:
  • , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'jasonc-packetbeat', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install jasonc-packetbeat --version 0.1.0

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

jasonc/packetbeat — version 0.1.0 Oct 12th 2017

Packetbeat module
Jason Cochard (jasonc@uber.com)
05/19/2017

Taken with the defaults, this module will install packetbeat on CentOS or
Debian-like systems. It assumes that the .rpm or .deb is available to your
machine in a corresponding yum or apt repo.

If the default config is set to false, you can supply a template by directly adding
packetbeat::configfile to your manifest, e.g.:

packetbeat::configfile { 'packetbeat_config':
  content => template("site/profile/packetbeat/packetbeat.yml.erb"),
  order   => '10',
}

We also support dynamically building the config with hashes, broken into three sections. You will need to supply a config_hash, outputs_hash, and protocols_hash
to generate a config. Example of each here in hiera. Some of these are hashes of
hashes, while some values are just hashes.

config_hash:

packetbeat::config_hash:
  packetbeat.interfaces.device: 'any'
  packetbeat.flows:
    enabled: 'true'
    timeout: '30s'
    period: '10s'
  packetbeat.interfaces.snaplen: '1500'
  logging.to_files: 'true'
  logging.files:
    path: '/var/log/packetbeat'
    name: 'packetbeat.log'

outputs_hash:

packetbeat::outputs_hash:
  elasticsearch:
    hosts: "[\"%{hiera('packetbeat::ece-endpoint')}:%{hiera('packetbeat::ece-port')}\"]"
    protocol: 'https'
    username: 'packetbeat'
    password: "%{hiera('packetbeat::ece_password')}"

protocols_hash:

packetbeat::protocols_enabled:
 dns:
   ports: "[53]"
   include_authorities: true
   include_additionals: true
 icmp: