File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11logstash-forwarder formula
22================
33
4+ 0.0.2 (2014-09-02)
5+ - Added managed init files for Debian and RedHat
6+ - Support turning off logstash-forwarder log messages using
7+ log_to_syslog pillar variable
8+
490.0.1 (2014-08-19)
510 - Initial commit
Original file line number Diff line number Diff line change @@ -21,12 +21,15 @@ Available states
2121
2222Install the ``logstash-forwarder `` package, set up configuration file,
2323optionally set up the lumberjack certificate, and enable the service. This
24- formula currently supports Debian and RedHat based distributions, however the
25- service init file for RedHat distributions is currently broken, see
26- <https://github.com/elasticsearch/logstash-forwarder/pull/196>. Due to this,
27- the formula provides it's own init script until such a time when the above
28- issue is resolved.
29-
24+ formula currently supports Debian and RedHat based distributions. Although the
25+ packages for Debian and RedHat provide service init files, we manage it within
26+ this formula for two reasons:
27+
28+ * The RedHat service init file is currently broken, see <https://github.com/elasticsearch/logstash-forwarder/pull/196>
29+ * By default, init files for both distro families enables 'log-to-syslog' when invoking
30+ logstash-forwarder, which can pollute your syslog with unnecessary noise. By default
31+ this feature will remain on, but it can be turned off by setting logstash_forwarder:log_to_syslog
32+ to false in your pillar data.
3033
3134Usage
3235=====
Original file line number Diff line number Diff line change 1- 0.0.1
1+ 0.0.2
Original file line number Diff line number Diff line change 11{%- from 'logstash_forwarder/map.jinja' import logstash_forwarder with context %}
22#! /bin/sh
33### BEGIN INIT INFO
4- # Provides: skeleton
4+ # Provides: logstash-forwarder
55# Required-Start: $remote_fs $syslog
66# Required-Stop: $remote_fs $syslog
77# Default-Start: 2 3 4 5
88# Default-Stop: 0 1 6
9- # Short-Description: Example initscript
10- # Description: This file should be used to construct scripts to be
11- # placed in /etc/init.d.
129### END INIT INFO
1310
14- # Author: Jordan Sissel <jordan.sissel@dreamhost.com>
15-
1611# PATH should only include /usr/* if it runs after the mountnfs.sh script
1712PATH=/sbin:/usr/sbin:/bin:/usr/bin
1813DESC="log shipper"
Original file line number Diff line number Diff line change 1- {%- from ' logstash_forwarder/map.jinja' import logstash_forwarder with context % }
2-
31# Do nothing unless the target is RedHat or Debian based
4-
52{%- if grains[' os_family' ] == ' RedHat' or grains[' os_family' ] == ' Debian' %}
3+ {%- from ' logstash_forwarder/map.jinja' import logstash_forwarder with context % }
4+
65include:
76 - .repo
87
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ logstash_forwarder:
1818 fields:
1919 type: nginx-error
2020 cert_path: /etc/ssl/certs/logstash-forwarder.crt
21+ log_to_syslog: true
2122 cert_contents: |
2223 -----BEGIN CERTIFICATE-----
2324 MIIDBzCCAe+gAwIBAgIJAImyMODCMdTFMA0GCSqGSIb3DQEBBQUAMBoxGDAWBgNV
You can’t perform that action at this time.
0 commit comments