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

Log events sent to CloudWatch should use timestamp parsed from log #46

Open
andeero opened this issue Jun 8, 2016 · 0 comments
Open

Comments

@andeero
Copy link
Member

andeero commented Jun 8, 2016

When log events from agents are sent to CloudWatch, the current time is used for the InputLogEvent object. There may be a considerable difference between the time of the actual log event and when the event gets sent to CloudWatch. This leads to inaccurate timestamps in CloudWatch Logs.

E.g:
2016-06-08 10:26:28 UTC 12:23:34.552 [pool-1-thread-4632] TRACE n.c.j.e.CommandExtractEventsFromFile - Line 6621 was the last line read from file=logs/jau.log

Possible solution:

  • Extend eventExtractionConfig with timestamp format
  • Parse timestamp according to format
  • Fallback to current time if parsing fails?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant