http error - LogStash returns 200 OK even on malformed requests -


i testing logstash using postman, , tried posting request localhost:5556/debug/warning malformed or missing body (for example json has {{{ , no closing brackets) see error i'll get. surprise, logstash still gives me 200 ok. assumed 400 bad request or similar.

it returns 200 ok if es instance connects missing (and /health check reports failure connect in case).

is normal logstash?

if using http input plugin receive request, json codec used if content-type application/json (see here). can explain why, in case of malformed json, 200 code returned.

for case of missing es instance, 200 code signal request has been received http input plugin , request has been transmitted queue treated next plugins in pipeline (you can take @ code here).

when elasticsearch output plugin fails send request elasticsearch, http input plugin has send 200 code saying has correctly received message.


Comments