Log to Metric Conversion in Edge Delta
less than a minute
Log Data Metrics
Edge Delta optimizes observability data by converting logs into metrics. These metrics can be used for creating dashboards, alerting, and for anomaly detection. For instance, you may be interested to know how many logs with level DEBUG a given service produces, without retaining the entire message:
2022-08-19 17:56:51 DEBUG org.mongodb.driver.cluster - Checking status of cluster0-shard-00-01.mongodb.net:27417
This log can be detected and converted into a metric using the log to metric node with (?)debug
configured for the pattern.
The processor will produce a metric that will be reported every minute to the Edge Delta backend. In the Edge Delta web app, it can be viewed in the Metrics Explorer.
This example is an illustration of using a regex processor to perform a logs to metric conversion. The Edge Delta agent supports numerous nodes for generating more sophisticated metrics that can extract:
- Numeric value extraction (e.g. latency)
- Multi-dimensional values (e.g. response code, method, and latency for an HTTP endpoint)
- and several more.
Anomaly Detection
The metrics produced from logs can be further analyzed to detect anomalous values. For more information, see anomaly detection.