This repository was archived by the owner on May 6, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ RUN apt-get update \
1717 && fluent-gem install --no-document fluent-plugin-kubernetes_metadata_filter \
1818 && fluent-gem install --no-document fluent-plugin-elasticsearch \
1919 && fluent-gem install --no-document fluent-plugin-remote_syslog -v 0.3.2 \
20+ && fluent-gem install --no-document fluent-plugin-sumologic-mattk42 \
2021 && fluent-gem install --no-document influxdb -v 0.3.2 \
2122 && fluent-gem install --no-document nsq-ruby \
2223 && fluent-gem install --local /opt/fluentd/deis-output/pkg/fluent-plugin-deis_output-0.1.0.gem \
Original file line number Diff line number Diff line change @@ -198,6 +198,31 @@ cat << EOF >> $FLUENTD_CONF
198198EOF
199199fi
200200
201+ if [ -n " $SUMOLOGIC_COLLECTOR_URL " ]
202+ then
203+ IS_HTTPS=` echo " $SUMOLOGIC_COLLECTOR_URL " | grep -c ' https://' `
204+ SUMOLOGIC_HOST=` echo " $SUMOLOGIC_COLLECTOR_URL " | sed ' s/https*:\/\///' | cut -d ' /' -f 1`
205+ SUMOLOGIC_ENDPOINT=` echo " $SUMOLOGIC_COLLECTOR_URL " | sed " s/.*:\/\/$SUMOLOGIC_HOST //" `
206+
207+ SUMOLOGIC_PORT=443
208+ if [ $IS_HTTPS != 1 ]
209+ then
210+ SUMOLOGIC_PORT=80
211+ fi
212+
213+ cat << EOF >> $FLUENTD_CONF
214+ <store>
215+ buffer_type file
216+ buffer_path /var/log/fluent/logcentral
217+ type sumologic
218+ host $SUMOLOGIC_HOST
219+ port $SUMOLOGIC_PORT
220+ format json
221+ path $SUMOLOGIC_ENDPOINT
222+ </store>
223+ EOF
224+ fi
225+
201226cat << EOF >> $FLUENTD_CONF
202227<store>
203228 @type deis
You can’t perform that action at this time.
0 commit comments