Store value of filed as array

I am trying to store a json response from an API that received by http plugin of Logstash, in Elasticsearch. one of fields called users returns value like this

"users" => [
                        [0] {
                                "role" => [
                                [0] {
                                    "id" => "81"
                                },
                                [1] {
                                    "id" => "79"
                                }
                            ],
                            "username" => "first-user",
                             "user_id" => "1"
                        },
                        [1] {
                                "role" => [
                                [0] {
                                    "id" => ""
                                }
                            ],
                            "username" => "second-user",
                             "user_id" => "2"
                        }
                    ]

I want to store it as an array field. use dynamic mapping but just get a text string (just send it Elasticsearch without any changes).
is it possible to store it as an array of nested fields? and inner nested fields like role.id?
is this field queryable?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.