Add collection of the new glbc and cluster-autoscaler logs

This commit is contained in:
Alex Robinson
2016-06-03 11:42:40 -04:00
parent 81c5cfc139
commit bb51c94172
6 changed files with 61 additions and 8 deletions

View File

@@ -15,7 +15,7 @@
.PHONY: build push
IMAGE = fluentd-elasticsearch
TAG = 1.15
TAG = 1.17
build:
docker build -t gcr.io/google_containers/$(IMAGE):$(TAG) .

View File

@@ -124,7 +124,7 @@
format /^(?<time>[^ ]* [^ ,]*)[^\[]*\[[^\]]*\]\[(?<severity>[^ \]]*) *\] (?<message>.*)$/
time_format %Y-%m-%d %H:%M:%S
path /var/log/salt/minion
pos_file /var/log/gcp-salt.pos
pos_file /var/log/es-salt.pos
tag salt
</source>
@@ -222,6 +222,34 @@
type kubernetes_metadata
</filter>
# Example:
# I0603 15:31:05.793605 6 cluster_manager.go:230] Reading config from path /etc/gce.conf
<source>
type tail
format multiline
multiline_flush_interval 5s
format_firstline /^\w\d{4}/
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
time_format %m%d %H:%M:%S.%N
path /var/log/glbc.log
pos_file /var/log/es-glbc.log.pos
tag glbc
</source>
# Example:
# I0603 15:31:05.793605 6 cluster_manager.go:230] Reading config from path /etc/gce.conf
<source>
type tail
format multiline
multiline_flush_interval 5s
format_firstline /^\w\d{4}/
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
time_format %m%d %H:%M:%S.%N
path /var/log/cluster-autoscaler.log
pos_file /var/log/es-cluster-autoscaler.log.pos
tag cluster-autoscaler
</source>
<match **>
type elasticsearch
log_level info