FreeRADIUS InkBridge

Size

The file.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!")
}

File access restriction

Files accessed in this function are restricted by the limit files section in the main security configuration. If present in radiusd.conf, only files in the paths listed can be accessed.