mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Add a prefix to the POS file for Fluentd to Elasticsearch
This commit is contained in:
parent
a62673d226
commit
985d5c1f95
@ -1,6 +1,6 @@
|
||||
.PHONY: build push
|
||||
|
||||
TAG = 1.2
|
||||
TAG = 1.3
|
||||
|
||||
build:
|
||||
sudo docker build -t kubernetes/fluentd-elasticsearch:$(TAG) .
|
||||
|
@ -38,7 +38,7 @@
|
||||
format json
|
||||
time_key time
|
||||
path /var/lib/docker/containers/*/*-json.log
|
||||
pos_file /var/lib/docker/containers/containers.log.pos
|
||||
pos_file /var/lib/docker/containers/es-containers.log.pos
|
||||
time_format %Y-%m-%dT%H:%M:%S
|
||||
tag docker.*
|
||||
read_from_head true
|
||||
@ -62,7 +62,7 @@
|
||||
type tail
|
||||
format none
|
||||
path /varlog/kubelet.log
|
||||
pos_file /varlog/kubelet.log.pos
|
||||
pos_file /varlog/es-kubelet.log.pos
|
||||
tag kubelet
|
||||
</source>
|
||||
|
||||
|
@ -2,7 +2,7 @@ version: v1beta2
|
||||
id: fluentd-to-elasticsearch
|
||||
containers:
|
||||
- name: fluentd-es
|
||||
image: kubernetes/fluentd-elasticsearch:1.2
|
||||
image: kubernetes/fluentd-elasticsearch:1.3
|
||||
env:
|
||||
- name: FLUENTD_ARGS
|
||||
value: -qq
|
||||
|
Loading…
Reference in New Issue
Block a user