Skip to content

feat: add timestamps flag to logs collector #1776

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

Merged
merged 2 commits into from
Apr 17, 2025

Conversation

lamdor
Copy link
Contributor

@lamdor lamdor commented Apr 16, 2025

Description, Motivation and Context

Kubernetes logs can be transmitted with the captured timestamps. This is useful for containers that do not log with timestamps. So I'm exposing that as a flag.

Checklist

  • New and existing tests pass locally with introduced changes.
  • Tests for the changes have been added (for bug fixes / features)
  • The commit message(s) are informative and highlight any breaking changes
  • Any documentation required has been added/updated. For changes to https://troubleshoot.sh/ create a PR here

Does this PR introduce a breaking change?

  • Yes
  • No

@lamdor lamdor requested a review from a team as a code owner April 16, 2025 18:55
@CLAassistant
Copy link

CLAassistant commented Apr 16, 2025

CLA assistant check
All committers have signed the CLA.

@lamdor lamdor changed the title feat: add timestamps falg to logs collector feat: add timestamps flag to logs collector Apr 16, 2025
Kubernetes logs can be transmitted with the captured timestamps. This is useful for containers that do not log with timestamps. So I'm exposing that as a flag.
@lamdor lamdor force-pushed the la/push-kwyknquwvkuo branch from 0210c83 to d24b7f2 Compare April 16, 2025 22:55
@lamdor
Copy link
Contributor Author

lamdor commented Apr 16, 2025

I did write up a test, but I'm not entirely sure how to make sure it's testing it.

@lamdor
Copy link
Contributor Author

lamdor commented Apr 16, 2025

I have tested this feature in a live cluster and it worked as expected.

sgalsaleh
sgalsaleh previously approved these changes Apr 17, 2025
@sgalsaleh sgalsaleh added the type::feature New feature or request label Apr 17, 2025
@sgalsaleh
Copy link
Member

Thanks for the contribution!

@sgalsaleh sgalsaleh enabled auto-merge (squash) April 17, 2025 13:56
auto-merge was automatically disabled April 17, 2025 14:11

Head branch was pushed to by a user without write access

@lamdor lamdor requested a review from sgalsaleh April 17, 2025 14:13
@lamdor
Copy link
Contributor Author

lamdor commented Apr 17, 2025

@sgalsaleh Please re-review, I had to generate schemas. I wasn't aware I needed to do that.

@laverya laverya merged commit 3a457d1 into replicatedhq:main Apr 17, 2025
28 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants