You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
先上配置
ConfigMap:
DaemonSet
问题1
首先这套配置
ContainerFile = true
可以监听到其他pod内指定的/app/logs//.log文件,是正常的,但是我应用所在pod并没有配置_node_name_
、_node_ip_
、ALIYUN_LOG_ENV_TAGS
变量,也就意味着我无法通过inputs.file_log.ContainerInfo.ExternalEnvTag
来获取到我的pod所在节点的一些信息然而我发现,在阿里云上的的SLS对接ACK集群中的日志,竟然有这个
_node_name_
字段,不知道是怎么配置出来的(请原谅敏感信息厚马):问题2
能否像filebeat的
processors.add_kubernetes_metadata
一样,获取到一些k8s metadata到日志中来,在我们的使用场景中,很多时候需要这些信息来过滤日志参考文档
Beta Was this translation helpful? Give feedback.
All reactions