LogStash returns 200 OK even on malformed requests

Viewed 383

I am testing LogStash using Postman, and I tried posting a request to localhost:5556/debug/warning with a malformed or missing body (for example JSON that has {{{ and no closing brackets) to see what error I'll get. To my surprise, LogStash still gives me 200 OK. I assumed I would get a 400 Bad Request or similar.

It even returns 200 OK if the ES instance to which it connects is missing (and the /health check reports failure to connect in that case).

Is that normal for LogStash?

1 Answers
Related