Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel2
typeflat

...

How does it work in the search window?

Note

Before being able to perform this operation, you have to group your data. Be aware that the columns used as arguments for the grouping operation will not be available to select as arguments for the aggregation operation.

After grouping the data, select Aggregation in the search window toolbar, then select the Sum operation. You need to specify one argument:

Argument

Data type

Sum mandatory

integer, float

The data type of the aggregated values is integer or float.

Example

In the demosiem.logtrust.ecommerceweb.dataactivity table, we want to calculate the sum of the values in the bytesTransferredcontentlength column during each 5-minute period. Before aggregating the data, the table must be grouped in 5-minute intervals. Then we will perform the aggregation using the Sum operation.

The arguments needed for the Sum operation are:

  • Sum → bytesTransferredcontentlength column

...

Click Aggregate function and you will see the following result:

...

You can copy the following LINQ script and try the example above on the demosiem.logtrust.ecommerceweb.dataactivity table:

Code Block
from demosiem.logtrust.ecommerceweb.data
 activity
group every 5m
  every 5m
  select sum(bytesTransferredcontentLength) as sum_bytescontent