Configuration and Syntax of the TeamViewer Log Parser Connector

Configuration and Syntax of the TeamViewer Log Parser Connector

October 9, 2020
TeamViewer IoT Documentation

The connector can be configured given the following configuration arguments:

Argument / flagRequired?Description
-p, –parseryesThe 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, –timeoutyesDuration 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 / flagRequired?Description
-f, –fileyesFile path of the log to parse
-R, –regexyesString or regex expression to match
(for more information see https://docs.python.org/3/library/re.html)

Metrics

Argument / flagRequired?Description
-f, –fileyesFile path of the log to parse
-M, –metricsyesSpace delimited list of metrics to extract
-A, –aggfunctionsyesSpace delimited list of aggregation functions for each respective metric

Possible values: avg, sum, min, max, median
-T, –templatenoTemplate to parse metrics

Default template is :metric=.(.*?).[s], which will match log entries of “metricName”=”value”

Related posts

Want more? Exclusive deals, the latest news: Our Newsletter!