The UniversalCollectorMicroAgent:addLogFileCollector Method

The method adds a new log file collector that sends the collected logs to the configured forwarders.

Type

Synchronous, IMPACT_ACTION

Arguments

Name Type Description
Logfile String Path of the log file to be monitored
Regex String Regular expression to specify data that must be send to a forwarder. Only the logs that match the regular expression are forwarded. When regex is not defined, all new logs are forwarded.
Prefix String Add a prefix to the logs before publishing them

Returns

None