How to save array of nested type using Logstash?


(steve fai) #1

I store an array of stacktrace rows containing multiple fields, but can't seem to make the objects as nested type.

The array looks like this and is returned by a custom ruby filter that I made:

[
{
"name": "name1",
"message": "message1"
},
{
"name": "name2",
"message": "message2"
},
{
"name": "name3",
"message": "message3"
}
]

I currently just use event.set("array-field-name", array-values) but it isn't saved as nested type in ElasticSearch


(system) #2

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