Configure OpenTelemetry Console Exporter
Block: export.traces
The stdout exporter outputs flow records directly to the console (standard output), providing immediate, human-readable visibility into the data Mermin is processing. While OTLP export is the standard for production observability, the stdout exporter is ideal for development, debugging, and verifying flow capture without requiring an external backend.
Configuration
A complete configuration example can be found in the Default Configuration.
export.traces block
stdoutattributeOutput format for stdout exporter. In HCL you can use the shorthand
stdout = "text_indent"or the object formstdout = { format = "text_indent" }. In YAML use the object form with aformatkey.Type: String (enum), object with
formatkey, or nullDefault:
null(disabled)Valid Values:
"text_indent": Human-readable, indented text format (recommended)null: Disable stdout export
Syntax Variations: The exporter supports both a shorthand string and a structured object format to maintain compatibility across HCL and YAML.
HCL Shorthand (Recommended)
export "traces" { stdout = "text_indent" }Object Form (Required for YAML)
export "traces" { stdout = { format = "text_indent" } }
Output Format
Text Indent Format
The text_indent format provides structured, readable output:
Troubleshooting
No Output Visible
Symptoms: Stdout exporter enabled but no flow records in logs
Solutions:
Verify stdout is set (e.g.
stdout = "text_indent"orstdout = { format = "text_indent" })Check log level includes info:
log_level = "info"Verify flows are being captured: check metrics
Confirm log output destination
Too Much Output
Symptoms: Logs filling up quickly, hard to read
Solutions:
Add flow filters (see Filtering)
Reduce monitored interfaces
Use grep to filter relevant flows
Disable stdout after debugging
Output Format Issues
Symptoms: Truncated or malformed output
Solutions:
Check log collection limits
Verify container logs aren't being truncated
Increase log line length limits if needed
Best Practices
Disable in production: Use OTLP for production environments
Enable temporarily: Turn on only when needed for debugging
Use with filters: Combine with flow filters to reduce volume
Document usage: Note when/why stdout is enabled
Next Steps
Configure OTLP Export: Send flows to your production backend
Connect to Your Backend: Grafana, Elastic, Jaeger, and more
Filter Flows Before Export: Reduce console output volume
Configure Log Levels: Control verbosity
Need Help?
Troubleshoot Export Issues: Diagnose export problems
Last updated