The UniversalCollectorMicroAgent:addDockerLogCollector Method
This method adds a new Docker log collector. The Docker log collector collects the logs from the Docker container specified by the containerName argument.
Arguments
| Name | Type | Description |
|---|---|---|
| containerName | String | The name of the container to be used for data collection. |
| Regex | String | Regular expression to match in the container logs. If this argument is provided then the logs matching the regular expression are published. Otherwise, all the new logs are published. |
| Prefix | String | Prefix to append to logs before publishing them. If this argument is empty then no prefix is added. |
Related reference
Copyright © Cloud Software Group, Inc. All rights reserved.
