Logging exporter 🔗
The logging exporter allows the OpenTelemetry Collector to send traces, metrics, and logs directly to the console. The supported pipeline types are
logs. See Configure pipelines for more information.
Use the logging exporter to diagnose and troubleshoot issues with telemetry received and processed by the OpenTelemetry Collector, or to obtain samples for other purposes.
The logging exporter sends pipeline activity to the console as logs. To control the verbosity of the OpenTelemetry Collector itself, use the
Get started 🔗
By default, the Splunk Distribution of OpenTelemetry Collector includes the logging exporter with verbosity set to
detailed when deploying in agent mode. See Collector deployment modes for more information.
exporters: # ... # Other exporters # ... logging: # loglevel is deprecated; use verbosity instead # Available levels are "basic", "normal", and "detailed" verbosity: detailed
To activate the logging exporter, add it to any pipeline you want to diagnose. For example:
service: pipelines: traces: receivers: [jaeger, otlp, smartagent/signalfx-forwarder, zipkin] processors: - memory_limiter - batch - resourcedetection exporters: [sapm, signalfx, logging] metrics: receivers: [hostmetrics, otlp, signalfx, smartagent/signalfx-forwarder] processors: [memory_limiter, batch, resourcedetection] exporters: [signalfx, logging] logs: receivers: [fluentforward, otlp] processors: - memory_limiter - batch - resourcedetection exporters: [splunk_hec, logging]
Available verbosity levels are
detailed. The correspondence between verbosity levels and log levels is the following:
Log level (Deprecated)
detailed verbosity level might increase resource consumption on the host. Deactivate the logging exporter after you’ve obtained sufficient samples.
Sample configurations 🔗
The following example shows a logging exporter with detailed verbosity, which is equivalent to a
debug log level. Initial sampling is five messages logged each second, logging every 200 messages after the initial sample.
exporters: logging: verbosity: detailed sampling_initial: 5 sampling_thereafter: 200
The following table shows the configuration options for the logging exporter:
If you are a Splunk Observability Cloud customer and are not able to see your data in Splunk Observability Cloud, you can get help in the following ways.
Available to Splunk Observability Cloud customers 🔗
Submit a case in the Splunk Support Portal.
Call Splunk Customer Support.
Available to customers and free trial users 🔗
Ask a question and get answers through community support at Splunk Answers.
Join the Splunk #observability user group Slack channel to communicate with customers, partners, and Splunk employees worldwide. To join, see Chat groups in the Get Started with Splunk Community manual.
To learn about even more support options, see Splunk Customer Success.