Size The size function returns the size (in bytes) of the given file. Syntax %file.size(string) Example 1. Checking the size of a file if (%file.size("/var/log/radius.log") > (((uint64)1) << 20)) { %log.info("The log file is getting large!") }