Products | Versions |
---|---|
TIBCO LogLogic Log Management Intelligence | LMI 6.2.x |
In a scenario where users need to aggregate results by two or more time units (e.g. two days of first week of current month): can they use Aggregation Rules to achieve that ?
The answer is no. This is due to the way the Aggregation Rule will group result set if we specify a unit time (i.e. days). In this case, the new Aggregation Rule will return rows - regardless - grouped by that particular unit time (days in this case).
To achieve this users need to run a plain SQL/EQL query specifying aggregation unit time and unit quantities. For instance:
USE system | sys_eventTime in -2d | GROUP BY sys_collectIP
This query will return count messages grouped by source IP in last 2 days. Differently, the Aggregation Rule will add in to the GROUP BY statement the unit time as below:
USE system | GROUP BY sys_collectIP,days(sys_eventTime)
Which will return counts grouped by (single) day.