Stdout
  • 16 Jul 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 an easy-to-read JSON format that represents the Sparkplug payload.

Features

  • Provides User-friendly JSON Messages

  • 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?