yamaga
January 28, 2022, 3:35pm
1
Hi
I am trying to add some data with Bulk API, but it takes only the last record of my JSON input data.
Here an example with 3 record:
input data:
[
{
"ID_PROD": "15136",
"UNIT": "UN",
"RATE": 1
},
{
"ID_PROD": "21588",
"UNIT": "UN",
"RATE": 1
},
{
"ID_PROD": "21500",
"UNIT": "UN",
"RATE": 2
}
]
It takes only the last record
Screen from Kibana index management
Any idea about the cause of that issue?
Thanks in advance
Hi @yamaga ,
the REST bulk API expects ndjson. Are you using the REST API or one of the clients?
yamaga
January 31, 2022, 11:46am
3
I am using an external API
it works when I add a key to every record.
Hi @yamaga ,
which API is that? I am not sure I understand what you mean by "external API", can you elaborate please?
it works when I add a key to every record
How does the resulting payload look? And is there still a need for help on this?
1 Like
system
(system)
Closed
February 28, 2022, 12:35pm
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.