elasticsearch - BULK API : Malformed action/metadata line [3], expected START_OBJECT but found [VALUE_STRING] -
using elasticsearch 5.5,getting following error while posting bulk request, unable figure out wrong request.
"type": "illegal_argument_exception", "reason": "malformed action/metadata line [3], expected start_object found [value_string]"
post http://localhost:9200/access_log_index/access_log/_bulk
{ "index":{ "_id":11} } { "id":11, "tenant_id":682, "tenant_name":"kcc", "user.user_name":"k0772251", "access_date":"20170821", "access_time":"02:41:44.123+01:30", "operation_type":"launch_service", "remote_host":"qlsso.quicklaunchsso.com", "user_agent":"mozilla/5.0 (linux; android 7.0; lgls775 build/nrd90u) applewebkit/537.36 (khtml, gecko) chrome/56.0.2924.87 mobile safari/537.36", "browser":"", "device":"", "application.application_id":1846, "application.application_name":"desire2learn", "geoip.ip":"192.95.18.163", "geoip.country_code":"us", "geoip.country_name":"united states", "geoip.region_code":"nj", "geoip.region_name":"new jersey", "geoip.city":"newark", "geoip.zip_code":7102, "geoip.time_zone":"america/new_york", "geoip.latitude":40.7355, "geoip.longitude":-74.1741, "geoip.metro_code":501 } { "index":{"_id":12} } { "id":12, "tenant_id":682, "tenant_name":"kcc", "user.user_name":"k0772251", "access_date":"20170821", "access_time":"02:50:44.123+01:30", "operation_type":"launch_service", "remote_host":"qlsso.quicklaunchsso.com", "user_agent":"mozilla/5.0 (linux; android 7.0; lgls775 build/nrd90u) applewebkit/537.36 (khtml, gecko) chrome/56.0.2924.87 mobile safari/537.36", "browser":"", "device":"", "application.application_id":2341, "application.application_name":"gmail", "geoip.ip":"192.95.18.163", "geoip.country_code":"us", "geoip.country_name":"united states", "geoip.region_code":"nj", "geoip.region_name":"new jersey", "geoip.city":"newark", "geoip.zip_code":7102, "geoip.time_zone":"america/new_york", "geoip.latitude":40.7355, "geoip.longitude":-74.1741, "geoip.metro_code":501 }
Comments
Post a Comment