How can I log 400 Bad Request when creating documents

When creating documents, I want 400 Bad Requests to be added to the log so I can see clients that are getting errors.

Is this possible?

Welcome to our community! :smiley:

Which log are you referring to here?

Hi Mark,

Thanks for your reply.

I'm not referring to any log in particular - any log capable of logging these errors is fine.

Clients use the HTTP API to send data to Elastic. Sometimes these clients send malformed requests (getting a 400 error back) and I would like to track this. It is not feasible for me to track these errors on the client side.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.