I have an index with the following structure - @timestamp the format is Apr 25, 2021 @ 05:30:00.000,
all of the documents have this same time however the dates vary eg. Apr 26, 2021 @ 05:30:00.000
The next field is a long eg. 134,960, incidentally I need to use the average metric to get the data
What I would like to do is calculate weekly averages, however I can't figure out how to do the same using TSVB tables or scripted fields.
I need help with date math to add the values of the data field for the corresponding last 7 days,
and then divide the same by 7.
The basic objective is to have this data displayed in a meeting(preferably in a table), so as long as your solution allows us to do the same we have no issues trying it.
Could you explain how to achieve date histogram aggregation?
Ah! Unfortunately we're on 7.8.
I can use a moving average in the Data Table Visualization, however I can't seem to set the window using advanced input.
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.