Stdout
  • 03 Oct 2024
  • 1 Minute to read
  • PDF

Stdout

  • PDF

Article summary

Overview

Note:

The stdout connector is provided for testing and debugging purposes.

The Stdout connector logs the SparkplugB metrics to the console’s standard output using a JSON format that represents the Sparkplug payload.

Features

  • Provides a JSON representation of the Sparkplug message payload

  • Supports filtering using regular expressions (regex)

Configuration

The default configuration for the Stdout connector:

...
# Connectors configuration
[connectors]
  name = "stdout"

# Stdout
[connectors.stdout]
  # Regex pattern to include all metrics
  metric_name_filter = ".*"

Example

Example configuration to capture all metrics with “Temperature” in the name:

...
# Connectors configuration
[connectors]
  name = "stdout"

# Stdout
[connectors.stdout]
  metric_name_filter = "Temperature"


Was this article helpful?