I've got a custom source A and B, which I need to compute a weighted average over,
each source has only 2 collums: datetime and its own score (one per day, both sources times coincide).
EDIT:
EtuServiceApdex.csv headers:
_time,EtuServiceApdex
EtuOpApdex.csv headers:
_time,EtuOpApdex
index=resources_reporting (source="*/output/ora_queries/client07/EtuOpApdex.csv" OR source="*/output/ora_queries/client07/EtuServiceApdex.csv")
returns something like,
28/02/2013 00:00:00.000 2013-02-28T00:00:00.000+00:00,64.583333
host=vsplunk sourcetype=csv-47 source=/opt/splunk/etc/apps/remote_scripts/output/ora_queries/client07/EtuServiceApdex.csv
28/02/2013 00:00:00.000 2013-02-28T00:00:00.000+00:00,50
host=vsplunk sourcetype=csv-49 source=/opt/splunk/etc/apps/remote_scripts/output/ora_queries/client07/EtuOpApdex.csv
27/02/2013 00:00:00.000 2013-02-27T00:00:00.000+00:00,77.083333
host=vsplunk sourcetype=csv-47 source=/opt/splunk/etc/apps/remote_scripts/output/ora_queries/client07/EtuServiceApdex.csv
27/02/2013 00:00:00.000 2013-02-27T00:00:00.000+00:00,54.166667
host=vsplunk sourcetype=csv-49 source=/opt/splunk/etc/apps/remote_scripts/output/ora_queries/client07/EtuOpApdex.csv
and both
index=resources_reporting (source="*/output/ora_queries/mt/MT_EtuOpApdex.csv" OR source="*/output/ora_queries/client07/EtuServiceApdex.csv")
| timechart avg(EtuOpApdex)
or
| timechart avg(EtuServiceApdex)
return the expected graph over time,
however, If I add the following I lose the _time properties
| eval TotalApdexScore=(0.66*EtuServiceApdex + 0.33*EtuOpApdex)
and
| timechart avg(TotalApdexScore)
returns a _time series with null values over TotalApdexScore.
Eg:
_time avg(TotalApdexScore)
1 01/01/2013 00:00:00.000
2 02/01/2013 00:00:00.000
3 03/01/2013 00:00:00.000
How should I change the expression to get the intended weighted average over time ?
... View more