dynatrace-oss / logstash-output-dynatrace

A Logstash output plugin for sending logs to Dynatrace
4 stars 1 forks source link

Dynatrace gives a Bad Request #19

Closed heydenb closed 2 years ago

heydenb commented 2 years ago

[2022-07-28T16:41:03,119][ERROR][logstash.outputs.dynatrace][main][dynatrace_nonprod] Dynatrace returned 400 Bad Request

Currently I have no idea why this is. There are probably limitations at API level, but I don't know now if the message is to long or someting else.

dyladan commented 2 years ago

This isn't really enough information to know exactly what happened. There are some API level limits but I can't really say which you are hitting if any. Does this happen on every log line, occasionally, rarely, or just once? If you can enable debug logging to gather more information as well then we may be able to pinpoint what is going on.

heydenb commented 2 years ago

Hey Daniel, this suggestion is not to solve this specific issue. Found it already. But the api returns a message when there is a Bad Request. A very useful message. If you could just print it out when it occurs, the troubleshooting is a lot easier.

That's why I created this initially as an enhancement ;-)

dyladan commented 2 years ago

Client errors now log request bodies as of 0.3.0