From 732d848aee7e8818db13d7009bedfccb199b4f02 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Sat, 11 Nov 2017 15:40:26 +0100 Subject: [PATCH 1/9] Copies output/elasticsearch/ --- output/kafka/fluent-bit-configmap.yaml | 94 ++++++++++++++++++++++++ output/kafka/fluent-bit-ds-minikube.yaml | 55 ++++++++++++++ output/kafka/fluent-bit-ds.yaml | 49 ++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 output/kafka/fluent-bit-configmap.yaml create mode 100644 output/kafka/fluent-bit-ds-minikube.yaml create mode 100644 output/kafka/fluent-bit-ds.yaml diff --git a/output/kafka/fluent-bit-configmap.yaml b/output/kafka/fluent-bit-configmap.yaml new file mode 100644 index 0000000..d2c2ae7 --- /dev/null +++ b/output/kafka/fluent-bit-configmap.yaml @@ -0,0 +1,94 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: fluent-bit-config + namespace: logging + labels: + k8s-app: fluent-bit +data: + # Configuration files: server, input, filters and output + # ====================================================== + fluent-bit.conf: | + [SERVICE] + Flush 1 + Log_Level info + Daemon off + Parsers_File parsers.conf + + @INCLUDE input-kubernetes.conf + @INCLUDE filter-kubernetes.conf + @INCLUDE output-elasticsearch.conf + + input-kubernetes.conf: | + [INPUT] + Name tail + Tag kube.* + Path /var/log/containers/*.log + Parser docker + DB /var/log/flb_kube.db + Mem_Buf_Limit 5MB + Skip_Long_Lines On + Refresh_Interval 10 + + filter-kubernetes.conf: | + [FILTER] + Name kubernetes + Match kube.* + Kube_URL https://kubernetes.default.svc:443 + Merge_JSON_Log On + + output-elasticsearch.conf: | + [OUTPUT] + Name es + Match * + Host ${FLUENT_ELASTICSEARCH_HOST} + Port ${FLUENT_ELASTICSEARCH_PORT} + Logstash_Format On + Retry_Limit False + + parsers.conf: | + [PARSER] + Name apache + Format regex + Regex ^(?[^ ]*) [^ ]* (?[^ ]*) \[(?