I have a datastream that it is often being updated, for some graphs I use the full data stream for visualizations, for example, doing histograms with the @timestamp field. But for other cases I would like to do graphs that are only about the latest version(latest timestamp) in the records.
Which way do you recommend me to do this? How would you do a graph that always segments the records that has the latest @timestamp?
This seems to be the case for a transform to create a new index with the latest data based in a common entity field. Check the documentation for Latest transforms:
You can, not sure what you are trying to do, but there is no limitation about this.
Transforms can have a Data View or a Search as the source of the data, you just need to have a Data View for your Datastream and use this data view as the source of your transform.
On the other hand, once I generate the transforms and runs OK I can see that the destination index contains documents not only with the latest @timestamp field from the datastream but also some previous timestamps.
When creating the transform I set max age to 1h and in the datastream I have sets of documents from each hour timestamp, I can see timestamps for the few previous days(each hour).
Is there a way to restrict that the destination index has only the latest @timestamp docs, for the latest hour?
and I get just the latest timestamp, that I think I can use it. But not sure why if I se the gt to now-1h, if it is one hour from now, I get the two latest timestamps with:
In the data stream I have a set of documents for a given timestamp for 12 days for each hour, so a total of 288 different unique timestamps.
I expect to see the sets of documents with the latest timestamp.
What there is in the destination index is the timestamp sets of docs for the last 3 days, so a total of 72 of unique timestamps( or 72 sets of documents for each timestamp)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.