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
Add new logging format option, 'json-ts', for JSON formatted logs with timestamps #24307
Merged
michi-covalent
merged 1 commit into
cilium:master
from
learnitall:pr/learnitall/add-json-ts-format
Apr 4, 2023
Merged
Add new logging format option, 'json-ts', for JSON formatted logs with timestamps #24307
michi-covalent
merged 1 commit into
cilium:master
from
learnitall:pr/learnitall/add-json-ts-format
Apr 4, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maintainer-s-little-helper
bot
added
the
dont-merge/needs-release-note-label
The author needs to describe the release impact of these changes.
label
Mar 10, 2023
learnitall
force-pushed
the
pr/learnitall/add-json-ts-format
branch
3 times, most recently
from
March 10, 2023 23:41
7dd3294
to
179a43a
Compare
learnitall
force-pushed
the
pr/learnitall/add-json-ts-format
branch
2 times, most recently
from
March 13, 2023 18:44
c68cde5
to
482c14a
Compare
Looks like pushing the images failed due to a bad gateway error from quay:
I'm going to rebase to re-trigger the tests. |
learnitall
force-pushed
the
pr/learnitall/add-json-ts-format
branch
from
March 14, 2023 15:06
482c14a
to
bf35cc4
Compare
rolinh
approved these changes
Mar 29, 2023
rolinh
added
area/misc
Impacts miscellaneous areas of the code not otherwise owned by another area.
release-note/minor
This PR changes functionality that users may find relevant to operating Cilium.
labels
Mar 29, 2023
maintainer-s-little-helper
bot
removed
the
dont-merge/needs-release-note-label
The author needs to describe the release impact of these changes.
label
Mar 29, 2023
learnitall
force-pushed
the
pr/learnitall/add-json-ts-format
branch
from
March 30, 2023 16:46
bf35cc4
to
06d46fe
Compare
This commit adds a new log formatter named 'json-ts', which can be used to enable json logs that include timestamps. Normally, timestamps for logs can be collected through the use of k8s container logging system, ie by passing `--timestamps` to `kubectl logs`. Relying on k8s for log timestamps is not always available however, therefore it is useful to have the ability to add timestamps if needed in special cases. One case in which this is useful is for programmatically parsing through the `cilium-cni` log file, in order to observe and record CNI events. Signed-off-by: Ryan Drew <ryan.drew@isovalent.com>
learnitall
force-pushed
the
pr/learnitall/add-json-ts-format
branch
from
April 3, 2023 20:30
06d46fe
to
5ba11e0
Compare
Hey @cilium/cli just want to double-check and see if there is anything you need from me to get this merged? |
michi-covalent
approved these changes
Apr 3, 2023
/test |
maintainer-s-little-helper
bot
added
the
ready-to-merge
This PR has passed all tests and received consensus from code owners to merge.
label
Apr 4, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/misc
Impacts miscellaneous areas of the code not otherwise owned by another area.
ready-to-merge
This PR has passed all tests and received consensus from code owners to merge.
release-note/minor
This PR changes functionality that users may find relevant to operating Cilium.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit adds a new log formatter named 'json-ts', which can be used to enable json logs that include timestamps. Normally, timestamps for logs can be collected through the use of k8s container logging system, ie by passing
--timestamps
tokubectl logs
. Relying on k8s for log timestamps is not always available however, therefore it is useful to have the ability to add timestamps if needed in special cases.One case in which this is useful is for programmatically parsing through the
cilium-cni
log file, in order to observe and record CNI events.Correct me if I'm wrong, but I'm pretty sure this needs the following labels:
release-note/misc
area/misc
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.