Skip to main content
Sumo Logic


The round function returns the closest integer to x.


  • round(<x>) as <field>


You can calculate the message volume for a specific Source Host using this query. You can use the round function to get the closest integer value of the volume.  

| where _sourceCategory="sourcehost_volume"
| parse regex "(?<sourcehost>\"[^\"]+\")\:\{\"sizeInBytes\"\:(?<bytes>\d+),\"count\"\:(?<count>\d+)\}" multi
| bytes/1024/1024 as MB
| sum(MB) as MB by sourcehost
| round(MB)