Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Puppet module to add a logfile to logrotate and optionally to logstash
Puppet Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
manifests
spec
tests
.gitignore
Modulefile
README.asciidoc

README.asciidoc

logfile puppet module

This is the puppet module to manage logfiles, adding them to logratate and, optionally, logstash

License

GPLv3

Contact

Joe Julian <me@joejulian.name>

Support

Please log tickets and issues at github

Known Issues

  • This currently only works on RHEL/CentOS

  • This only support using beaver as the logstash listener

Usage

  # You can use bash expansions and globs
  logfile::log { "syslog files":
    target => "/var/log/{secure,messages}",
    type   => "syslog",
  }

  logfile::log { "apache logs":
    target => "/var/log/httpd/*_log",
    type   => "apache",
  }

  # If you leave off the target, the name will be used
  logfile::log { "/var/log/myapp/mylog.log":
    type   => "myapp",
  }
Something went wrong with that request. Please try again.