[ERROR] [[main]<file] json - JSON parse error, original data now in message fiel {:message=>"incompatible json object type=java.lanString, only hash map or arrays are supported", :exception=>LogStash::Json::ParserError, data=>" /"bandwidthLimits

My logstash filter code catches incorrect data, can anyone help me with the correct syntax?

input {
  file {
    path => "/var/tmp/wd/accounts/*.json"
    codec => "json"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }
}

filter {
    json {
        source => "message"
    }
}

output {
   elasticsearch {
     hosts => "http://localhost:9200"
     template => "/etc/logstash/templates/accounts-template.json"
     template_name =>["accounts-template.json"]
     template_overwrite => true
     index => "accounts-%{+yyyy.MM.dd}"
     user =>  "user"
     password => "password"
}
   stdout {codec => rubydebug}
  }

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