agent = require("agent")
time = require("time")
files = agent.collector.files(
filePath = "/var/log/*.log", # required
pollPeriod = time.millisecond * 500 # optional
rotationCheckPeriod = time.second # optional
fileBufferSize = 32 * 1024 # optional
format = "line-log" # optional
# "line-json" - each line is a whole JSON message
)