I tried using the _bulk api with the data provided in sample data section. However the bulk API always throwing error. I know earlier it was working like charm. I used fiddler to call _bulk api and attached the file.
This is specific with the log related sample data.
Step1 Error: During the mapping creation this is what i got. Though mapping got saved in index.
#! Deprecation: field [include_in_all] is deprecated, as [_all] is deprecated, and will be disallowed in 6.0, use [copy_to] instead.
Step 2 Error:
{"error":{"root_cause":[{"type":"json_parse_exception","reason":"Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@2b2d58fd; line: 1, column: 3]"}],"type":"json_parse_exception","reason":"Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@2b2d58fd; line: 1, column: 3]"},"status":500}
Interesting thing is -> if i use same lines and past it in dev tool using _bulk it works.... But its a cumbersome process to load so many lines in Dev tool. There should be easy way out like i use fiddler.
This used to work like a charm with 5.4 version but something broken in current version.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.