-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
Kibana does not return logs that start with "::" #29640
Comments
Can you share the fluentd pod logs? |
I'm wondering if this is something to do with Elasticsearch rather than fluentd - ES logs would be useful too. |
Some potentially relevant logs: $ ks logs fluentd-elasticsearch-ip-172-20-0-129.us-west-1.compute.internal
[...]
2016-07-29 21:19:28 +0000 [info]: Connection opened to Elasticsearch cluster => {:host=>"elasticsearch-logging", :port=>9200, :scheme=>"http"}
2016-07-29 21:19:21 +0000 [info]: reading config file path="/etc/td-agent/td-agent.conf"
2016-07-29 21:19:21 +0000 [info]: starting fluentd-0.12.19
2016-07-29 21:19:21 +0000 [info]: gem 'fluent-mixin-config-placeholders' version '0.3.0'
2016-07-29 21:19:21 +0000 [info]: gem 'fluent-mixin-plaintextformatter' version '0.2.6'
2016-07-29 21:19:21 +0000 [info]: gem 'fluent-plugin-docker_metadata_filter' version '0.1.1'
2016-07-29 21:19:21 +0000 [info]: gem 'fluent-plugin-elasticsearch' version '1.3.0'
2016-07-29 21:19:21 +0000 [info]: gem 'fluent-plugin-kubernetes_metadata_filter' version '0.14.0'
2016-07-29 21:19:21 +0000 [info]: gem 'fluent-plugin-mongo' version '0.7.11'
2016-07-29 21:19:21 +0000 [info]: gem 'fluent-plugin-rewrite-tag-filter' version '1.5.3'
2016-07-29 21:19:21 +0000 [info]: gem 'fluent-plugin-s3' version '0.6.4'
2016-07-29 21:19:21 +0000 [info]: gem 'fluent-plugin-scribe' version '0.10.14'
2016-07-29 21:19:21 +0000 [info]: gem 'fluent-plugin-td' version '0.10.28'
2016-07-29 21:19:21 +0000 [info]: gem 'fluent-plugin-td-monitoring' version '0.2.1'
2016-07-29 21:19:21 +0000 [info]: gem 'fluent-plugin-webhdfs' version '0.4.1'
2016-07-29 21:19:21 +0000 [info]: gem 'fluentd' version '0.12.19'
2016-07-29 21:19:21 +0000 [info]: adding match pattern="fluent.**" type="null"
2016-07-29 21:19:21 +0000 [info]: adding filter pattern="kubernetes.**" type="kubernetes_metadata"
2016-07-29 21:19:22 +0000 [info]: adding match pattern="**" type="elasticsearch"
2016-07-29 21:19:22 +0000 [info]: adding source type="tail"
2016-07-29 21:19:22 +0000 [info]: adding source type="tail"
2016-07-29 21:19:22 +0000 [info]: adding source type="tail"
2016-07-29 21:19:22 +0000 [info]: adding source type="tail"
2016-07-29 21:19:22 +0000 [info]: adding source type="tail"
2016-07-29 21:19:22 +0000 [info]: adding source type="tail"
2016-07-29 21:19:22 +0000 [info]: adding source type="tail"
2016-07-29 21:19:22 +0000 [info]: adding source type="tail"
2016-07-29 21:19:22 +0000 [info]: adding source type="tail"
2016-07-29 21:19:22 +0000 [info]: using configuration file: <ROOT>
<match fluent.**>
type null
</match>
<source>
type tail
path /var/log/containers/*.log
pos_file /var/log/es-containers.log.pos
time_format %Y-%m-%dT%H:%M:%S.%NZ
tag kubernetes.*
format json
read_from_head true
</source>
<source>
type tail
format /^(?<time>[^ ]* [^ ,]*)[^\[]*\[[^\]]*\]\[(?<severity>[^ \]]*) *\] (?<message>.*)$/
time_format %Y-%m-%d %H:%M:%S
path /var/log/salt/minion
pos_file /var/log/gcp-salt.pos
tag salt
</source>
<source>
type tail
format syslog
path /var/log/startupscript.log
pos_file /var/log/es-startupscript.log.pos
tag startupscript
</source>
<source>
type tail
format /^time="(?<time>[^)]*)" level=(?<severity>[^ ]*) msg="(?<message>[^"]*)"( err="(?<error>[^"]*)")?( statusCode=($<status_code>\d+))?/
time_format %Y-%m-%dT%H:%M:%S.%NZ
path /var/log/docker.log
pos_file /var/log/es-docker.log.pos
tag docker
</source>
<source>
type tail
format none
path /var/log/etcd.log
pos_file /var/log/es-etcd.log.pos
tag etcd
</source>
<source>
type tail
format multiline
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/kubelet.log
pos_file /var/log/es-kubelet.log.pos
tag kubelet
</source>
<source>
type tail
format multiline
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/kube-apiserver.log
pos_file /var/log/es-kube-apiserver.log.pos
tag kube-apiserver
</source>
<source>
type tail
format multiline
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/kube-controller-manager.log
pos_file /var/log/es-kube-controller-manager.log.pos
tag kube-controller-manager
</source>
<source>
type tail
format multiline
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/kube-scheduler.log
pos_file /var/log/es-kube-scheduler.log.pos
tag kube-scheduler
</source>
<filter kubernetes.**>
type kubernetes_metadata
</filter>
<match **>
type elasticsearch
log_level info
include_tag_key true
host elasticsearch-logging
port 9200
logstash_format true
buffer_chunk_limit 2M
buffer_queue_limit 32
flush_interval 5s
max_retry_wait 30
disable_retry_limit
</match>
</ROOT>
[...]
2016-07-29 21:21:22 +0000 [warn]: /var/log/containers/deis-monitor-telegraf-8kzp9_deis_deis-monitor-telegraf-6e6188d2e9f0383f54d7426ce6cc6d0fd1f2d91464dc3041c4086aafcaa2ba2f.log unreadable. It is excluded and would be examined next time.
2016-07-29 21:21:22 +0000 [warn]: /var/log/containers/blockai-api-v13-twitterbot-tl8x7_blockai-api_blockai-api-twitterbot-88ea286b58defc41bfda0ba1c44d3d69e4944e9ad159807b16eb4f3ace7ae90f.log unreadable. It is excluded and would be examined next time.
2016-07-29 21:21:22 +0000 [warn]: /var/log/containers/blockai-api-v13-twitterbot-tl8x7_blockai-api_POD-04e58818c771dd1cb09bfc5aa4db2450350f054026c9dc528fc41d0dcd16887a.log unreadable. It is excluded and would be examined next time.
2016-07-29 21:21:22 +0000 [warn]: /var/log/containers/blockai-api-v13-web-wlgiq_blockai-api_blockai-api-web-8147ef340a9eb87b9135e4f5c242d528af9f986f77dbac263bd5a1f387ca1718.log unreadable. It is excluded and would be examined next time.
2016-07-29 21:21:22 +0000 [warn]: /var/log/containers/slugbuild-blockai-api-f9c59d2a-d5d500f2_deis_POD-801dfdaa7899ba58f89987e40308f313d91ffa97e006106c0859c3d822dee655.log unreadable. It is excluded and would be examined next time.
2016-07-29 21:21:22 +0000 [warn]: /var/log/containers/blockstampd-v7-web-49dls_blockstampd_blockstampd-web-2ce985ed87a7bb17b4ce224b20fdae553aa34fb4d3eaf44af170788670994b63.log unreadable. It is excluded and would be examined next time.
[...]
Also frequently seeing this in fluentd pod:
|
That last error I think is caused by the (very old) version of Kubernetes metadata filter fluentd plugin using symbols rather than strings for keys. This is fixed in later versions & the image needs updating to use a recent release (latest release is 0.24.0). |
Fixed in fluent/fluentd#1147 |
Ah brilliant. Will have to wait for new fluentd release, unless they've made one already? That's a nasty bug. |
/sig instrumentation |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I installed k8s using
cluster/kube-up.sh
with AWS provider.I have a container which outputs logs in this format:
For some reason, logs that look like this are not visible through Kibana but other logs are (e.g.
User just registered!
). After changing my log format to something more simple the logs start showing up in Kibana, e.g.:I have no idea how to dig further into this issue as I'm new to k8s, kibana, fluentd and elasticsearch.
The text was updated successfully, but these errors were encountered: