open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.12k stars 2.39k forks source link

Syslog Exporter Unavailable In Container Builds #25833

Closed TaylorWork closed 1 year ago

TaylorWork commented 1 year ago

Component(s)

exporter/syslog

Describe the issue you're reporting

I've been trying to make use of the syslog exporter that was added in 0.78.0, however when deploying the docker image for opentelemetry-collector-contrib, the syslog exporter doesn't seem to be available.

I've tried both the 0.78.0 container build and the 0.83.0 build, and both of them produce the below error.

* error decoding 'exporters': unknown type: "syslog" for id: "syslog" (valid values: [f5cloud opencensus logzio zipkin logging awscloudwatchlogs awsemf elasticsearch jaeger_thrift kafka logicmonitor prometheus awskinesis awsxray azuredataexplorer datadog dynatrace googlemanagedprometheus tanzuobservability otlp carbon clickhouse sentry alibabacloud_logservice jaeger prometheusremotewrite sapm otlphttp coralogix dataset googlecloud loki mezmo pulsar sumologic awss3 azuremonitor file googlecloudpubsub influxdb instana tencentcloud_logservice loadbalancing signalfx skywalking splunk_hec])

For the configuration I am following the guidance from the below:

My config:

    extensions:
      file_storage/syslog:
        directory: /tmp/otc
        timeout: 10s
    exporters:
      syslog:
        network: tcp
        port: 514
        endpoint: syslog-endpoint.local
        format: rfc5424
        retry_on_failure:
          enabled: true
          initial_interval: 5s
          max_interval: 30s
        sending_queue:
          enabled: true
          storage: file_storage/syslog
    receivers:
      otlp/container-logs:
        protocols:
          grpc:
            endpoint: "0.0.0.0:4317"
        operators:
          - type: syslog_parser
            protocol: rfc5424
      otlp/other-logs:
        protocols:
          grpc:
            endpoint: "0.0.0.0:4318"
        operators:
          - type: syslog_parser
            protocol: rfc5424
    service:
      extensions:
        - file_storage/syslog
      pipelines:
        logs:
          exporters:
            - syslog
          receivers:
            - otlp/container-logs
            - otlp/other-logs
github-actions[bot] commented 1 year ago

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

crobert-1 commented 1 year ago

This exporter is not included in the released distribution at this time. (Check here for current exporters included in released versions of the contrib collector.) You could use it by running directly from the repository, but not released versions of the collector.

The syslog exporter is labeled as being at the Development stability level, meaning it's likely not ready for release yet.

I'll defer to the codeowners regarding plans for releasing this component.

crobert-1 commented 1 year ago

/label -needs-triage

andrzej-stencel commented 1 year ago

@crobert-1 is correct, there are a couple issues to be completed before the Syslog exporter is included in contrib:

Work on these issues is planned from the code owners, but I cannot commit to any dates at this point.