Error: Expected one of #, ", ', }

Hi,
try this configuration

input
{
file
{
path => "/home/app/estest.csv"
start_position => "beginning"
}
}
filter
{
}
output
{
elasticsearch
{
hosts => ["myownhost:9200"]
index => "revenue"
document_type => "customer"
}
}

notice hosts value between '[' and ']'