vector icon indicating copy to clipboard operation
vector copied to clipboard

enhancement(kubernetes_logs source): add container_start_time to k8s_logs

Open guswynn opened this issue 1 year ago • 7 comments

This adds the container start time to the kubernetes_logs source. While container_id helps distinguish between different instances of the same container, it does not clarify the time-order of these container. Often, we want to be able to look at the logs

My understanding (not confirmed, but based on my understanding of kubernetes) is that this field may not be filled in before the container starts. This means some early log lines may have chance of missing this label. If this is actually the case, its still useful to use the existence of log lines with both the container_id and start_time label to associate container instances with their start time

guswynn avatar Sep 01 '23 18:09 guswynn