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

[Feature Request] Add _timestamp field for each document #11922

Closed
razoliver opened this issue Jan 18, 2024 · 5 comments
Closed

[Feature Request] Add _timestamp field for each document #11922

razoliver opened this issue Jan 18, 2024 · 5 comments
Labels
enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing untriaged

Comments

@razoliver
Copy link

Is your feature request related to a problem? Please describe

When indexing new documents the current options for adding a timestamp are:

  1. Using ingest pipeline ('set' or 'date' processors) and setting it as the default for an index or using it in every index request.
  2. Using OSI (Ingestion Pipelines) and using a 'Date' processor to add a timestamp

Describe the solution you'd like

Every document that is indexed could have a _timestamp field by default when it's indexed. Upon update/upsert this _timestamp can be updated.

Related component

Indexing

Describe alternatives you've considered

No response

Additional context

No response

@razoliver razoliver added enhancement Enhancement or improvement to existing feature or request untriaged labels Jan 18, 2024
@github-actions github-actions bot added the Indexing Indexing, Bulk Indexing and anything related to indexing label Jan 18, 2024
@peternied
Copy link
Member

[Triage - attendees 1 2]
@razoliver Thanks for creating this issue; however, it isn't being accepted due that the caller can include their own timestamp in the document. Please feel free to re-open after addressing the reason.

@peternied peternied closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2024
@razoliver
Copy link
Author

@peternied
If OS is a part of a pipeline it can be very useful to have a timestamp upon indexing which will be different than the timestamp on different parts of the pipeline

@peternied
Copy link
Member

very useful

@razoliver Could you describe a scenario where a timestamp added at document creation wouldn't be useful, whereas this proposal timestamp would be?

@razoliver
Copy link
Author

@peternied
If you want to calculate data-freshness in your pipeline you'd need both timestamps.

@peternied
Copy link
Member

@razoliver For metrics there is a plugin Performance Analyzer that supports a large number of dimensions and granularities. The use case you are after might already by supported with this plugin.

Performance Analyzer is a plugin that contains an agent and REST API that allow you to query numerous cluster performance metrics, including aggregations of those metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing untriaged
Projects
None yet
Development

No branches or pull requests

2 participants