This repository was archived by the owner on Aug 17, 2023. 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 33source /opt/fluentd/sbin/stores/deis
44source /opt/fluentd/sbin/stores/elastic_search
55source /opt/fluentd/sbin/stores/syslog
6+ source /opt/fluentd/sbin/stores/sumologic
Original file line number Diff line number Diff line change 1+ if [ -n "$SUMOLOGIC_COLLECTOR_URL" ]
2+ then
3+ IS_HTTPS=`echo "$SUMOLOGIC_COLLECTOR_URL" | grep -c 'https://'`
4+ SUMOLOGIC_HOST=`echo "$SUMOLOGIC_COLLECTOR_URL" | sed 's/https*:\/\///' | cut -d '/' -f 1`
5+ SUMOLOGIC_ENDPOINT=`echo "$SUMOLOGIC_COLLECTOR_URL" | sed "s/.*:\/\/$SUMOLOGIC_HOST//"`
6+
7+ SUMOLOGIC_PORT=443
8+ if [ $IS_HTTPS != 1 ]
9+ then
10+ SUMOLOGIC_PORT=80
11+ fi
12+
13+ cat << EOF >> $FLUENTD_CONF
14+ <store>
15+ buffer_type file
16+ buffer_path /var/log/fluent/logcentral
17+ type sumologic
18+ host $SUMOLOGIC_HOST
19+ port $SUMOLOGIC_PORT
20+ format json
21+ path $SUMOLOGIC_ENDPOINT
22+ </store>
23+ EOF
24+ fi
You can’t perform that action at this time.
0 commit comments