Hi
I have followed the example outlined inside the document about the JSON processor:
https://www.elastic.co/guide/en/elasticsearch/reference/6.8/json-processor.html
Here is the code:
{
"json" : {
"field" : "status_report",
"target_field" : "status_report_json",
"ignore_failure" : true
}
}
Questions:
-
I noticed in the TABLE view, the JSON processor does not decode the JSON if there is a list of complex structure. In the example below, there are 2 fields that was not decoded: a) coordinates, b) area_details. I would like to find out if this is a known limitation or there is something that can be done to fully decode these fields?
-
I also noticed that in the JSON view, the JSON string has been decoded correctly. This is different from the TABLE view, where I noticed some failure (Please refer to the picture that I capture and uploaded here)
-
Is the above target_field ("status_report_json") will be created by the JSON processor without being predefined. Is it expected? I try to define this field inside the fields.yml, but this change does not work - Java execption error!
Here is the JSON structure:
"status_report": "{"summary":{"status":"SUCCESS","last_checked_time":1599035573,"total_size":128914936},"area_detail":{"area_type":"HOME_AREA","area_geometry":{"type":"BBOX","coordinates":[{"lat":32.507170148650867,"lon":-97.11751645451773},{"lat":33.04615931912257,"lon":-97.11751645451773},{"lat":33.04615931912257,"lon":-96.4764624273182},{"lat":32.507170148650867,"lon":-96.4764624273182}]},"layer_details":[{"layer":"JUNCTION_VIEW","state":"COMPLETED","status":"SUCCESS","size":11495984,"created_time":1599035342,"updated_time":1599035557},{"layer":"LANDMARK","state":"COMPLETED","status":"SUCCESS","size":6574073,"created_time":1599035342,"updated_time":1599035573},{"layer":"STREET","state":"COMPLETED","status":"SUCCESS","size":14518781,"created_time":1599035342,"updated_time":1599035345},{"layer":"MAP","state":"COMPLETED","status":"SUCCESS","size":84938399,"created_time":1599035342,"updated_time":1599035436},{"layer":"POI","state":"COMPLETED","status":"SUCCESS","size":11359236,"created_time":1599035342,"upd
ated_time":1599035347},{"layer":"ADMIN","state":"COMPLETED","status":"SUCCESS","size":28463,"created_time":1599035342,"updated_time":1599035348},{"layer":"KNOWLEDGE","state":"COMPLETED","status":"NO_UPDATE","size":0,"created_time":1599035342,"updated_time":1599035342}]}}",