otel_logs_source

The otel_logs_source source is an OpenTelemetry source that follows the OpenTelemetry Protocol Specification and receives logs from the OTel Collector in the form of ExportLogsServiceRequest records.

This source supports the OTLP/gRPC protocol.

Configuration

You can configure the otel_logs_source source with the following options.

OptionTypeDescription
portintRepresents the port that the otel_logs_source source is running on. Default value is 21892.
pathstringRepresents the path for sending unframed HTTP requests. You can use this option to support an unframed gRPC request with an HTTP idiomatic path to a configurable path. The path should start with /, and its length should be at least 1. The /opentelemetry.proto.collector.logs.v1.LogsService/Export endpoint is disabled for both gRPC and HTTP requests if the path is configured. The path can contain a ${pipelineName} placeholder, which is replaced with the pipeline name. If the value is empty and unframed_requests is true, then the path that the source provides is /opentelemetry.proto.collector.logs.v1.LogsService/Export.
request_timeoutintRepresents the request timeout duration in milliseconds. Default value is 10000.
health_check_serviceBooleanEnables the gRPC health check service under grpc.health.v1/Health/Check. Default value is false.
proto_reflection_serviceBooleanEnables a reflection service for Protobuf services (see ProtoReflectionService and gRPC reflection). Default value is false.
unframed_requestsBooleanEnables requests that are not framed using the gRPC wire protocol. Default value is false.
thread_countintThe number of threads to keep in the ScheduledThreadPool. Default value is 500.
max_connection_countintThe maximum number of open connections allowed. Default value is 500.

SSL

You can configure SSL in the otel_logs_source source with the following options.

OptionTypeDescription
sslBooleanEnables TLS/SSL. Default value is true.
sslKeyCertChainFilestringRepresents the SSL certificate chain file path or Amazon Simple Storage Service (Amazon S3) path. For example, see the Amazon S3 path s3://<bucketName>/<path>. Required if ssl is set to true.
sslKeyFilestringRepresents the SSL key file path or Amazon S3 path. For example, see the Amazon S3 path s3://<bucketName>/<path>. Required if ssl is set to true.
useAcmCertForSSLBooleanEnables TLS/SSL using a certificate and private key from AWS Certificate Manager (ACM). Default value is false.
acmCertificateArnstringRepresents the ACM certificate Amazon Resource Name (ARN). ACM certificates take precedence over Amazon S3 or local file system certificates. Required if useAcmCertForSSL is set to true.
awsRegionstringRepresents the AWS Region used by ACM or Amazon S3. Required if useAcmCertForSSL is set to true or sslKeyCertChainFile or sslKeyFile is the Amazon S3 path.

Usage

To get started, create a pipeline.yaml file and add otel_logs_source as the source:

  1. source:
  2. - otel_logs_source:

Metrics

You can use the following metrics with the otel_logs_source source.

OptionTypeDescription
requestTimeoutsCounterMeasures the total number of requests that time out.
requestsReceivedCounterMeasures the total number of requests received by the otel_logs_source source.
badRequestsCounterMeasures the total number of requests that could not be parsed.
requestsTooLargeCounterMeasures the total number of requests that exceed the maximum allowed size. Indicates that the size of the data being written into the buffer is beyond the buffer’s maximum capacity.
internalServerErrorCounterMeasures the total number of requests that are erroneous due to errors other than requestTimeouts or requestsTooLarge.
successRequestsCounterMeasures the total number of requests successfully written to the buffer.
payloadSizeDistribution summaryMeasures the distribution of all incoming payload sizes.
requestProcessDurationTimerMeasures the duration of request processing.