Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect Kubelet logs with Fluentd->(Elasticsearch|Cloud Logging) #2923

Merged
merged 1 commit into from
Dec 15, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions cluster/saltbase/salt/fluentd-es/fluentd-es.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@ containers:
- name: hosts
mountPath: /outerhost
readOnly: true
- name: varlog
mountPath: /varlog
volumes:
volumes:
- name: containers
source:
hostDir:
path: /var/lib/docker/containers
- name: varlog
source:
hostDir:
path: /var/log
- name: hosts
source:
hostDir:
Expand Down
6 changes: 6 additions & 0 deletions cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ containers:
volumeMounts:
- name: containers
mountPath: /var/lib/docker/containers
- name: varlog
mountPath: /varlog
volumes:
- name: containers
source:
hostDir:
path: /var/lib/docker/containers
- name: varlog
source:
hostDir:
path: /var/log
18 changes: 18 additions & 0 deletions contrib/logging/fluentd-es-image/td-agent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,21 @@
logstash_format true
flush_interval 5s
</match>

<source>
type tail
format none
path /varlog/kubelet.log
pos_file /varlog/kubelet.log.pos
tag kubelet
</source>

<match kubelet>
type elasticsearch
log_level info
include_tag_key true
host %ES_HOST%
port 9200
logstash_format true
flush_interval 5s
</match>
18 changes: 18 additions & 0 deletions contrib/logging/fluentd-gcp-image/google-fluentd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,21 @@
# Disable the limit on the number of retries (retry forever).
disable_retry_limit
</match>

<source>
type tail
format none
time_key time
path /varlog/kubelet.log
pos_file /varlog/kubelet.log.pos
tag kubelet
</source>

<match kubelet>
type google_cloud
flush_interval 5s
# Never wait longer than 5 minutes between retries.
max_retry_wait 300
# Disable the limit on the number of retries (retry forever).
disable_retry_limit
</match>