The UniversalCollectorMicroAgent:addLogFileCollector Method
The method adds a new log file collector that sends the collected logs to the configured forwarders.
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 |
Related reference
Copyright © Cloud Software Group, Inc. All rights reserved.