Stdout
- 03 Oct 2024
- 1 Minute to read
- Print
- PDF
Stdout
- Updated on 03 Oct 2024
- 1 Minute to read
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
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?