My configuration file has a filter which converts majors field
filter {
json {
source => "majors"
remove_field => ["majors"]
}
}
I get following debug event
{
"user_id" => 1529067,
"school_id" => 1458,
"cluster_id" => 39,
"degree_type" => "Bachelor's Degree",
"@timestamp" => 2019-05-23T06:21:16.782Z,
"updated_at" => 2018-10-18T05:27:57.000Z,
"majors" => "[\"Accounting\"]",
"hub_id" => 39,
"deleted_at" => nil,
"import_status" => "joined",
"@version" => "1"
}
looks like majors is a parsed string and on saving to elastic search it saves as a string. I want it to save it as an array. How can I achieve it?? or is it needed to convert the field to array from parsed string?
Thanks in advance