-
Notifications
You must be signed in to change notification settings - Fork 195
cmd/log-parser: Add containerID to list of standard fields #453
Comments
Extract the container ID from the structured logs and add it to the standard `LogEntry` type. This will allow (most of) the log entries to be associated with individual containers, which will make debugging and analysis easier. Fixes kata-containers#453. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Hi @bergwolf, @sboeuf, @grahamwhaley - I've got a branch that captures the There are of course quite a few log entries across the system that are not associated with any container/sandbox. But looking through https://github.com/kata-containers/agent/blob/master/protocols/grpc/agent.proto I noticed a few points:
To summarise, the following gRPC services are not associated with a container or a sandbox (from the perspective of the logs):
Clearly, they don't strictly need to be (as the system works :). However, for consistency and to allow us to improve our tracing, I wonder if we should consider adding a [1] - It also picks out the container ID from the agent gRPC trace generated by https://github.com/kata-containers/agent/blob/master/agent.go#L585. |
Extract the container ID from the structured logs and add it to the standard `LogEntry` type. This will allow (most of) the log entries to be associated with individual containers, which will make debugging and analysis easier. Fixes kata-containers#453. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Extract the container ID from the structured logs and add it to the standard `LogEntry` type. This will allow (most of) the log entries to be associated with individual containers, which will make debugging and analysis easier. Fixes kata-containers#453. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
+1 from me. I think being able to associate actions and commands in the logs with the relevant container and/or sandbox is pretty critical to our debug - particularly when we start to run in to multi-pod and parallelism bugs. |
+1 from me ! |
I've just realised that we don't need to pass the sandbox ID over the wire as we can tell the agent the sandboxID at agent startup by adding something like a |
#453 (comment) is resolved by |
Extract the container ID from the structured logs and add it to the standard `LogEntry` type. This will allow (most of) the log entries to be associated with individual containers, which will make debugging and analysis easier. Fixes kata-containers#453. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Once kata-containers/runtime#453 lands, we should be able to add
containerID
as a standard field in thekata-log-parser
tool.The complication will be ensuring it handles the proxy which will not provide the containerID for all log entries (namely, the logs coming direct from the proxy as opposed to the agent output it also handles).
The text was updated successfully, but these errors were encountered: