This module installs logstash_forwarder and can also manage the custom scripts, host script and custom modules directories
The logstash host and the SSL certificate source locations are both mandadory parameters
class {'::logstash_forwarder':
logstash_server => 'logstash.example.com',
logstash_cert_source => 'puppet:///modules/mod_files/logstash.pem',
}
logstash_forwarder
Main class
logstash_server
(Tea::Host, Default: undef): The host name or IP address of the logstash serverlogstash_cert_source
(Tea::Puppetsource, Default: undef): This is a string which will be passed the file type source paramter and treated as the file containing the logstash public keylogstash_port
(Tea::Port, Default: 5000): The port of the logstash serverservice_name
(String, Default: 'logstash-forwarder'): name of the service to mnanagesyslog_enable
(Boolean, Default: true): redirect syslog entries to a logstash filesyslog_pattern
(String, Default: '*.warn'): The syslog pattern to forward to logstashsyslog_file
(Tea::Absolutepath, Default: /var/log/logstash_syslog): file file location to redirect syslog messages tologrotate_enable
(Boolean, Default: true): Rotate the file used for syslog messageslogrotate_rotate
(Integer[1,1000], Default: 5): how many copys of the syslog file to keep with logrotatelogrotate_size
(String, Default: '100M'): how large a file is allowed to be before its rotatedconf_file
(Tea::Absolutepath, Default: os specific): location of the logstash forwader config filelogstash_cert_dir
(Tea::Absolutepath, Default: os specific): location where to store the logstash public certificatefiles
(Array[Logstash_forwarder::File), default: undef): An array of hashes. Each hash tells what paths to watch and what fields to annotate on events from those paths (https://github.com/elastic/logstash-forwarder).This module is tested on Ubuntu 12.04, and 14.04 and FreeBSD 10