-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 support for nanosecond timestamps #15871
Comments
Hi guys, was just wondering if there was a planned release date for this feature? I was just noticing that it looked like most of the tasks were complete, so really looking forward to being able to use it soon! :^) |
Like issue #17660, libbeat docker-json reader not support nanoseconds, it maybe occur some problem, because i have a container and this container logs like below, i have no way to sort by the correct {"log": "Starting web...", "stream":"stderr", "time":"2020-06-15T05:26:22.521012484Z"}
{"log": "Starting web middleware...", "stream":"stderr", "time":"2020-06-15T05:26:22.521012490Z"} |
I read the source code about docker_json.go, i found parse docker log via |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Running on Kubernetes and still limited to milliseconds precision for log timestamps is a bit embarrassing! |
8.3 goal - understand where we are at and take a decision based on it. |
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
@kvch as you will be working on the analysis of that one, could you please provide us as an outcome:
|
I have opened a new PR #31553 in favour of the old one (#15872). At the moment it is a draft because the tests are still failing. I tested a few modules in Filebeat and Metricbeat manually. Pipelines and visualizations seem to work. I am confident once the tests pass on the CI we could get this in a few days. However, I would like to ask for additional manual testing from either QA source or others on our team. |
@dikshachauhan-qasource could you please consider it for the 8.3 testing scope? |
Hi @jlind23 Thanks for the update on requirement for testing. We will check this out and let you know progress in comments. Thanks |
Hi @jlind23 @kvch
Queries:Could you please confirm:
Please let us know if we are missing any other scenario to be covered. |
The feature hasn't been merged to |
Hi @kvch Further we had few queries related to this feature which we have shared under #15871 (comment) Thanks |
Hi @kvch
Build details: QuestionCould you please share some more testing details or could confirm if we are missing anything here? cc: @jlind23 |
By default Beats still use millisecond precision. You have to set
|
Were metricbeat mappings changed in this release? If not, I believe the |
Hi @kvch @joshdover
OS& Beats covered: Question:Please let us know if we need to validate this on any other beats or platforms. Thanks |
Would it make sense to change the default mappings as part of this release as well? Or is this out of scope in any case? In my mind beats could generate templates where |
@cmacknz should we do this mappings change? |
It sounds reasonable to me to switch to date_nanos in the templates. Likely we can do this with a follow up issue. @kvch does this sound reasonable to you? |
There are still some open issues regarding |
Thanks Andrew, I've created an issue to support |
I agree with @axw. Also, the default |
The
@timestamp
field only has microsecond precisions. Internally, or when collecting from external sources, timestamps might have higher precisions. Elasticsearch supports thedate_nano
type, and allows to store timestamps with higher precision even ifdate
is used.The
feature-timestamp-nano
branch is used for development.In progress PR merging the feature branch into master: #15872
n
formatter to always print nanoseconds. [WIP]beats @timestamp support nanoseconds #9818S
formatter to be used for higher precisions. [WIP]beats @timestamp support nanoseconds #9818f
formatter. Timestamp fractions pattern #15911date_nano
, or can keepdate
for timestamps?Other related issues:
The text was updated successfully, but these errors were encountered: