The logstash processs runs fine and inserts this record to elasticsearch. The problem i am having in elasticsearch is that the type value is converted to a string as displayed below
"type": "suv,sedan,convertible"
How do i get type to be "type":["suv","sedan","convertible"]
What are you trying to do with this? If type is an array, that will overwrite type with the array converted to a string, which is exactly what you are complaining about.
If you have target set to message in your json filter the type field will be [message][vehicles][type]. If you want that at the top level use
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.