elastic / elasticsearch-metrics-reporter-java

Metrics reporter, which reports to elasticsearch
Apache License 2.0
230 stars 103 forks source link

Intermittent "Bad Request. Bad number of command parts" when sending bulk to aws elasticsearch service #39

Open james3burke opened 8 years ago

james3burke commented 8 years ago

Hi, I'm sometimes getting a "400 Bad Request. Bad number of command parts" error for requests to an aws hosted elasticsearch service. It doesn't happen all the time, so it's not a problem with the connection, but sometimes I get:

2016-06-17 16:42:40,873 ERROR o.e.m.ElasticsearchReporter [metrics-elasticsearch-reporter-1-thread-1] - Reporting returned code 400 Bad Request. Bad number of command parts ['{"index":{"_index":"ott-metrics-2016-06","_type":"gauge"}}', '{"name":"ott.exec.parallel.active.thread.count","@timestamp":"2016-06-17T15:42:40.000+0000","value":0}', '{"index":{"_index":"ott-metrics-2016-06","_type":"gauge"}}', '{"name":"ott.exec.parallel.largest.thread.count","@timestamp":"2016-06-17T15:42:40.000+0000","value":0}', '{"index":{"_index":"ott-metrics-2016-06","_type":"gauge"}}', '{"name":"ott.exec.parallel.queue.size","@timestamp":"2016-06-17T15:42:40.000+0000","value":0}', 'POST', 'http://...<snip>.../_bulk', 'HTTP/1.1']: {}