Closed heydenb closed 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.
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 ;-)
Client errors now log request bodies as of 0.3.0
[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.