有没有办法在 Kubernetes 中捕获日志的历史记录?
Is there a way to capture the history of logs in Kubernetes?
在获取我们使用的 kubernetes 节点的日志时
kubectl get logs -lapp=default-agent -f
这从当前时间开始流式传输日志,有没有办法捕获历史记录?如果不是,没有日志历史,大公司怎么热修复这么快?
使用--since=<duration>
参数,参见documentation。
例如kubectl get logs -lapp=default-agent --since=1h
how are big corporations so fast in doing hot fixes, if there is no log history
大公司正在使用 Splunk、ELK、Loki 等企业解决方案...
你应该更熟悉 logging architecture in k8s
在获取我们使用的 kubernetes 节点的日志时
kubectl get logs -lapp=default-agent -f
这从当前时间开始流式传输日志,有没有办法捕获历史记录?如果不是,没有日志历史,大公司怎么热修复这么快?
使用--since=<duration>
参数,参见documentation。
例如kubectl get logs -lapp=default-agent --since=1h
how are big corporations so fast in doing hot fixes, if there is no log history
大公司正在使用 Splunk、ELK、Loki 等企业解决方案...
你应该更熟悉 logging architecture in k8s