HI All,
I have a complicated json data to ingest into elasticsearch, need your suggestion to achieve this.
Here is my data format,
<result_set elemtype="list">
<dataset>
<device>/api/device/13766</device>
<field_names elemtype="list">
<v>collection_time</v>
<v>d_check</v>
</field_names>
<data elemtype="list">
<data elemtype="list">
<v>1618644420</v>
<v>1</v>
</data>
</data>
</dataset>
<dataset>
<device>/api/device/13769</device>
<field_names elemtype="list">
<v>collection_time</v>
<v>d_check</v>
</field_names>
<data elemtype="list">
<data elemtype="list">
<v>1618644420</v>
<v>1</v>
</data>
</data>
</dataset>
<dataset>
<device>/api/device/13772</device>
<field_names elemtype="list">
<v>collection_time</v>
<v>d_check</v>
</field_names>
<data elemtype="list">
<data elemtype="list">
<v>1618644420</v>
<v>1</v>
</data>
</data>
</dataset>
<dataset>
<device>/api/device/13773</device>
<field_names elemtype="list">
<v>collection_time</v>
<v>d_check</v>
</field_names>
<data elemtype="list">
<data elemtype="list">
<v>1618644420</v>
<v>1</v>
</data>
</data>
</dataset>
Here for my device ID the data is proper ist coming like device : /api/device/13769
When it comes for he collection time and avilability the data is like fieldname itself coming as a field and the data in a separate field
<field_names elemtype="list">
<v>collection_time</v>
<v>d_check</v>
</field_names>
<data elemtype="list">
<data elemtype="list">
<v>1618644420</v>
<v>1</v>
How i want it to be indexed is
device : /api/device/13769
collection_time : 1618644420
d_check : 1
Please help to proceed with this.
Thanks
Gautham