New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content-type for Elasticsearch should be "application/x-ndjson" #6609
Comments
It is not clear from Elastic whether this content-type should be the new standard, or if they ever remove See my comment: #5795 (comment) I'm waiting until Elastic decides where to head, until then it stays "as is". In terms of Logstash - that might break, but is not the target of this feature (first time I've heard of |
I didn't tried to connect Icinga 2 directly to Elasticsearch yet, the initial idea was to use the input plugin I didn't know the type Anyways,
|
I think that we should use |
Currently the ElasticsearchWriter use
application/json
for the events sent to Elasticsearch.However, Elasticsearch defines a special content type
application/x-ndjson
since the content are not strictly a single JSON object but multiple JSON objects separated by newlines (the "bulk" format):https://www.elastic.co/guide/en/elasticsearch/reference/6.0/docs-bulk.html
application/json
is deprecated in Elasticsearch (since the version 5.3) and some applications which accept the bulk format (Logstash with the codeces_bulk
) can drop the data after the first line (the first JSON object).The text was updated successfully, but these errors were encountered: