I want to get sum of latest value of a field . With several conditions which is applied over other fields.
I am working on time series data and want to get information from last poled value.
Example Data:-
A
B
C
q1
1
2343
q1
2
53
q1
3
-1
q1
4
-1
q2
1
-1
q2
2
435
q2
3
543
q2
4
-1
Here the condition is : C > -1. For each unique A get each unique B.
Here the result should be q1- 1, q1-2, q2-2, q2-3.
Also the data got from last polling should be used and shouldn't change with time filter.
@Sunile_Manjee but still one issue is there. I am getting the result but my data is time series data. I want only last pole to be taken into consideration to perform aggregation. It's changing if I change time interval.
Suppose this is the data received from the last pole @timestamp A.
There are also previous data (of same format) which I am storing in my database. (Like at timestamp A-2m, A-4m etc).
Example of Data from previous pole:-
A
B
C
q1
1
2343
q1
2
23
q1
3
56
q1
4
-1
q2
1
-1
q2
2
435
q2
3
543
q2
4
-1
So here the previous poled data is different from latest pole data.
I want my visualization to check for the latest pole data and then put conditions accordingly.
The condition is : C > -1. For each unique A get each unique B.
Here the result should be q1- 1, q1-2, q2-2, q2-3.
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.