The connector can be configured given the following configuration arguments:
Argument / flag | Required? | Description |
---|---|---|
-p, –parser | yes | The log parser can operate in 2 modes: matches – (Default) returns a count of strings matching a specified regex since the last run metrics – returns an aggregated value for each specified metric since the last run |
-t, –timeout | yes | Duration to wait for parsing to complete before terminating and returning an error. Values are in seconds; Default, if not specified, is 5 seconds. |
The two modes of operation, (Matches & Metrics), each require additional parameters to be specified.
Matches
Argument / flag | Required? | Description |
---|---|---|
-f, –file | yes | File path of the log to parse |
-R, –regex | yes | String or regex expression to match (for more information see https://docs.python.org/3/library/re.html) |
Metrics
Argument / flag | Required? | Description |
---|---|---|
-f, –file | yes | File path of the log to parse |
-M, –metrics | yes | Space delimited list of metrics to extract |
-A, –aggfunctions | yes | Space delimited list of aggregation functions for each respective metric Possible values: avg, sum, min, max, median |
-T, –template | no | Template to parse metrics Default template is :metric=.(.*?).[s], which will match log entries of “metricName”=”value” |