Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Commit acdb852

Browse files
authored
Merge branch 'master' into features/rbac
2 parents 24d4ba9 + 5b58337 commit acdb852

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ This plugin allows for `fluentd` to send all log data to a sumologic endpoint. Y
8282
* `SUMOLOGIC_PORT` : defaults to 80 (unless `IS_HTTPS` is set and then its 443)
8383
* `IS_HTTPS`
8484

85+
### [fluent-plugin-gelf-hs](https://github.com/bodhi-space/fluent-plugin-gelf-hs)
86+
This plugin allows for `fluentd` to send all log data to a remote graylog endpoint. You can configure it using the following environment variables:
87+
* `GELF_HOST=some.host`
88+
* `GELF_PORT=12201`
89+
* `GELF_PROTOCOL="udp/tcp"`
90+
8591
### Deis Output
8692
Deis output is a custom fluentd plugin that was written to forward data directly to deis components while filtering out data that we did not care about. We have 2 pieces of information we care about currently.
8793

rootfs/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN buildDeps='g++ gcc make ruby-dev'; \
1616
fluent-gem install --no-document fluent-plugin-elasticsearch -v 1.7.0 && \
1717
fluent-gem install --no-document fluent-plugin-remote_syslog -v 0.3.2 && \
1818
fluent-gem install --no-document fluent-plugin-sumologic-mattk42 -v 0.0.4 && \
19+
fluent-gem install --no-document fluent-plugin-gelf-hs -v 1.0.2 && \
1920
fluent-gem install --no-document influxdb -v 0.3.2 && \
2021
fluent-gem install --no-document nsq-ruby -v 1.7.0 && \
2122
fluent-gem install --local /opt/fluentd/deis-output/pkg/fluent-plugin-deis_output-0.1.0.gem && \

rootfs/opt/fluentd/sbin/sources

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ cat << EOF >> $FLUENTD_CONF
66
@type tail
77
path /var/log/containers/*.log
88
pos_file /var/log/containers.log.pos
9+
time_key time
10+
time_format %Y-%m-%dT%H:%M:%S.%L%z
911
tag kubernetes.*
1012
format json
1113
read_from_head true

rootfs/opt/fluentd/sbin/stores/gelf

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
if [ -n "$GELF_HOST" ]
4+
then
5+
echo "Starting fluentd with gelf configuration!"
6+
GELF_PORT=${GELF_PORT:-12201}
7+
GELF_PROTOCOL=${GELF_PROTOCOL:-udp}
8+
9+
10+
cat << EOF >> $FLUENTD_CONF
11+
<store>
12+
@type gelf
13+
host ${GELF_HOST}
14+
port ${GELF_PORT}
15+
protocol ${GELF_PROTOCOL}
16+
</store>
17+
EOF
18+
fi

rootfs/opt/fluentd/sbin/stores/stores

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ source /opt/fluentd/sbin/stores/elastic_search
55
source /opt/fluentd/sbin/stores/syslog
66
source /opt/fluentd/sbin/stores/sumologic
77
source /opt/fluentd/sbin/stores/custom_stores
8+
source /opt/fluentd/sbin/stores/gelf

0 commit comments

Comments
 (0)