Skip to content
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

Stream logs of all containers in pod #5

Merged
merged 3 commits into from
Nov 16, 2016
Merged

Conversation

dtan4
Copy link
Owner

@dtan4 dtan4 commented Nov 16, 2016

Close #2

WHY

If pod has multiple containers, k8stail cannot print logs of all containers and aborts right away.

WHAT

Stream logs of all containers. Log line includes both pod name and container name.

$ k8stail -timestamps
Namespace: default
Labels:
----------
Pod counter has detected
[counter][count-a] 2016-11-16T02:08:24.081684592Z  | A 4: Wed Nov 16 02:08:24 UTC 2016
[counter][count-a] 2016-11-16T02:08:25.083563263Z  | A 5: Wed Nov 16 02:08:25 UTC 2016
[counter][count-b] 2016-11-16T02:08:24.319290508Z  | B 4: Wed Nov 16 02:08:24 UTC 2016
[counter][count-b] 2016-11-16T02:08:25.321003404Z  | B 5: Wed Nov 16 02:08:25 UTC 2016
[counter][count-a] 2016-11-16T02:08:26.085620721Z  | A 6: Wed Nov 16 02:08:26 UTC 2016
[counter][count-b] 2016-11-16T02:08:26.322793031Z  | B 6: Wed Nov 16 02:08:26 UTC 2016

@dtan4 dtan4 changed the title [WIP] Stream logs of all containers in pod Stream logs of all containers in pod Nov 16, 2016
@dtan4 dtan4 merged commit c5fe1a4 into master Nov 16, 2016
@dtan4 dtan4 deleted the multiple-container-pod branch November 16, 2016 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant