opentelemetry-collector-contrib: [exporter/datadog] Logs export fails with '414 Request-URI Too Large'
Component(s)
exporter/datadog
What happened?
Description
Datadog exporter throws “414 Request-URI Too Large” error after exporting a few logs
Here is. error log: 2022-11-19T11:22:42.930Z error Failed to send logs {“kind”: “exporter”, “data_type”: “logs”, “name”: “datadog/logs”, “error”: “414 Request-URI Too Large”, “msg”: "\r\n<title>414 Request-URI Too Large</title>\r\n\r\n
Steps to Reproduce
Run a collector with the following configuration and
Expected Result
Datadogexporter continue to export logs to Datadog without failing with 414 error
Actual Result
Collector version
0.64.0
Environment information
Environment
OS: (e.g., “Ubuntu 20.04”) Compiler(if manually compiled): (e.g., “go 14.2”)
OpenTelemetry Collector configuration
pipelines:
logs:
exporters:
- datadog/logs
processors:
- memory_limiter
- attributes/logs
receivers:
- filelog
exporter:
datadog/logs:
site: datadoghq.com
api:
key: ${DATADOG_API_KEY}
receiver:
filelog:
include:
- /data/output-logs
start_at: beginning
include_file_path: true
include_file_name: false
Log output
2022-11-20T00:12:28.883Z error Failed to send logs {"kind": "exporter", "data_type": "logs", "name": "datadog/logs", "error": "414 Request-URI Too Large", "msg": "<html>\r\n<head><title>414 Request-URI Too Large</title></head>\r\n<body>\r\n<center><h1>414 Request-URI Too Large</h1></center>\r\n</body>\r\n</html>\r\n", "status_code": "414 Request-URI Too Large"}
2022-11-20T00:12:28.883Z info Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "logs", "name": "datadog/logs", "error": "414 Request-URI Too Large", "interval": "35.25068593s"}
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (15 by maintainers)
Commits related to this issue
- exporter/datadogexporter: supress payload dump when logging at debug level This change removes the dumping of the payload at 'debug' logging level. It can be re-enabled using exporter::datadog::logs:... — committed to gbbr/opentelemetry-collector-contrib by gbbr 2 years ago
- exporter/datadogexporter: supress payload dump when logging at debug level (#16492) * exporter/datadogexporter: supress payload dump when logging at debug level This change removes the dumping of ... — committed to open-telemetry/opentelemetry-collector-contrib by gbbr 2 years ago
- exporter/datadogexporter: supress payload dump when logging at debug level (#16492) * exporter/datadogexporter: supress payload dump when logging at debug level This change removes the dumping of ... — committed to shalper2/opentelemetry-collector-contrib by gbbr 2 years ago
@sbracegirdle Thanks for debugging and creating the PR. I have added a comment
@gbbr Great, i will build from your PR branch and try it