I have the following format of JSON data that I send to a logstash instance listening on a http endpoint
{
client: "c",
pageInfo: ["a","b","c"],
restInfo: ["r","s","t"]
}
My goal is to send this input to an elasticsearch endpoint as two different types in the same index; for example
PUT elasticsearchhost:port/myindex/pageInfo
{ client: "c", pageInfo: ["a","b","c"] }
PUT elasticsearchhost:port/myindex/restInfo
{ client: "c", restInfo: ["r","s","t"] }
I have tried with some filters in logstash (split, mutate, grok) but I cannot understand how to perform this very specific split or if I have to modify my configuration also in the output section