Timelion will let you do this because it supports pulling data from multiple sources. Define two series in the timelion expression panel like this: .es(index=newdata*, metric=avg:euro).color(purple), .es(index=alldata*, metric=avg:euro).color(green). You'll want to update the index= parameter to match how your data is stored in elasticsearch and checkout the inline documentation for information about other parameters. Then you can use the interval picker by the play button to switch to 1m. Timelion visualizations can be saved and used on a dashboard like other visualizations.
What i want is: when the dataset is loaded to Elasticsearch i want it to calculate automatically the average of the field Euro and save it to a new field. So even when i change the data or add new ones to the Euro field, the avg(Euro) i want it to be automatic function and i can work with this new average in visualization.
Having automatic calculated average saved in a field must be easier to work with visualization. I think this is the best way to work with it but don't know how to do it.
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.